access pdo from php via console
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.
精彩评论