note 48395 added to features.commandline
| From: | BenJenkins at osu1 dot php dot net | Date: | Wed, 22 Dec 2004 05:23:40 +0000 |
| Subject: | note 48395 added to features.commandline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-82151@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/features.commandline.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48395
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48395&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48395&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48395&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48395&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48395&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48395&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48395&report=yes
Search -- http://master.php.net/manage/user-notes.php