• <bdo id='39hW4'></bdo><ul id='39hW4'></ul>
  • <legend id='39hW4'><style id='39hW4'><dir id='39hW4'><q id='39hW4'></q></dir></style></legend>
    <i id='39hW4'><tr id='39hW4'><dt id='39hW4'><q id='39hW4'><span id='39hW4'><b id='39hW4'><form id='39hW4'><ins id='39hW4'></ins><ul id='39hW4'></ul><sub id='39hW4'></sub></form><legend id='39hW4'></legend><bdo id='39hW4'><pre id='39hW4'><center id='39hW4'></center></pre></bdo></b><th id='39hW4'></th></span></q></dt></tr></i><div id='39hW4'><tfoot id='39hW4'></tfoot><dl id='39hW4'><fieldset id='39hW4'></fieldset></dl></div>

    <tfoot id='39hW4'></tfoot>

    <small id='39hW4'></small><noframes id='39hW4'>

      1. 如何确定在 PHP 中是否启用了 PDO?

        时间:2023-09-19
        • <bdo id='EJ3mC'></bdo><ul id='EJ3mC'></ul>
                <tbody id='EJ3mC'></tbody>
              <legend id='EJ3mC'><style id='EJ3mC'><dir id='EJ3mC'><q id='EJ3mC'></q></dir></style></legend>
                <tfoot id='EJ3mC'></tfoot>

                <i id='EJ3mC'><tr id='EJ3mC'><dt id='EJ3mC'><q id='EJ3mC'><span id='EJ3mC'><b id='EJ3mC'><form id='EJ3mC'><ins id='EJ3mC'></ins><ul id='EJ3mC'></ul><sub id='EJ3mC'></sub></form><legend id='EJ3mC'></legend><bdo id='EJ3mC'><pre id='EJ3mC'><center id='EJ3mC'></center></pre></bdo></b><th id='EJ3mC'></th></span></q></dt></tr></i><div id='EJ3mC'><tfoot id='EJ3mC'></tfoot><dl id='EJ3mC'><fieldset id='EJ3mC'></fieldset></dl></div>

                  <small id='EJ3mC'></small><noframes id='EJ3mC'>

                  本文介绍了如何确定在 PHP 中是否启用了 PDO?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  是否有 PHP 命令可以用来确定 PDO 是启用还是禁用?

                  Is there a PHP command I can use to determine if PDO is enabled or disabled?

                  我知道我手动运行 phpinfo() 并观察它,但我有一个脚本,我运行各种 Web 服务器,显示服务器的选定 PHP 配置设置.

                  I know I an manually run phpinfo() and eyeball it, but I have a script I run various web servers that display selected PHP configuration settings for the server.

                  所以我想看看是否有我可以使用的命令.

                  So I am looking to see if there is a command I can use.

                  推荐答案

                  检查类是否存在:

                  Check if the class exists:

                  if (class_exists('PDO'))
                  

                  感谢我仍然得到的支持和所有赞成票,但请查看Salman Abbas 的回答以了解 正确的方法来做到这一点.

                  I appreciate the support and all the upvotes I still get, but please check Salman Abbas's answer for the proper way to do this.

                  这篇关于如何确定在 PHP 中是否启用了 PDO?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                1. <small id='M18i8'></small><noframes id='M18i8'>

                2. <tfoot id='M18i8'></tfoot>
                        <bdo id='M18i8'></bdo><ul id='M18i8'></ul>

                          <legend id='M18i8'><style id='M18i8'><dir id='M18i8'><q id='M18i8'></q></dir></style></legend>
                          <i id='M18i8'><tr id='M18i8'><dt id='M18i8'><q id='M18i8'><span id='M18i8'><b id='M18i8'><form id='M18i8'><ins id='M18i8'></ins><ul id='M18i8'></ul><sub id='M18i8'></sub></form><legend id='M18i8'></legend><bdo id='M18i8'><pre id='M18i8'><center id='M18i8'></center></pre></bdo></b><th id='M18i8'></th></span></q></dt></tr></i><div id='M18i8'><tfoot id='M18i8'></tfoot><dl id='M18i8'><fieldset id='M18i8'></fieldset></dl></div>
                            <tbody id='M18i8'></tbody>