开发者

access pdo from php via console

开发者 https://www.devze.com 2023-04-02 19:07 出处:网络
I installed easyphp on win7 and added the php directory to my path. When I run php -i, I get: PDO support => enabled

I installed easyphp on win7 and added the php directory to my path. When I run php -i, I get:

PDO support => enabled
PDO drivers =>

wh开发者_StackOverflowereas, when querying php via apache, I get:

PDO drivers mysql, sqlite, sqlite2

How could I get these drivers into the console?


CGI typically has a different php.ini file than CLI. You can find out which .ini file PHP is using with php_ini_loaded_file(). If you copy the contents of the CGI config (in Debian it's located in /etc/php5/apache2/php.ini) to your CLI ini file, it might do the trick.

0

精彩评论

暂无评论...
验证码 换一张
取 消