note 48395 deleted from features.commandline by cmb
| From: | cmb@php.net | Date: | Sun, 30 Jun 2019 09:53:04 +0000 |
| Subject: | note 48395 deleted from features.commandline by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211438@lists.php.net to get a copy of this message | ||
Note Submitter: Ben Jenkins
----
This took me all day to figure out, so I hope posting it here saves someone some time:
Your PHP-CLI may have a different php.ini than your apache-php. For example: On my Debian-based
system, I discovered I have /etc/php4/apache/php.ini and /etc/php4/cli/php.ini
If you want MySQL support in the CLI, make sure the line
extension=mysql.so
is not commented out.
The differences in php.ini files may also be why some scripts will work when called through a web
browser, but will not work when called via the command line.