#!/usr/bin/php -c /home/marcello -q
<?
echo "test";
?>
where a php.ini file reside in /home/marcello and another in /usr/local/lib
Marcello
Bug Database wrote:
ID: 9448
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Install and Config
PHP Version: 4.0.4pl1
Assigned To:
Comments:You need to use a space between the -c and the path. That gives no error to me. The -h output reflects this in the upcoming PHP 4.0.5
Derick
Previous Comments:
---------------------------------------------------------------------------[2001-02-25 17:13:10] [EMAIL PROTECTED]
I use php with apache, in the same time a crontab generate big html page from a .php source file.#/usr/bin/php -q
<?
...
?>, but if I use -c/usr/local/newphp to force the read of another php.ini file just for the cgi and different from the one used with php/apache it gives an error.
php -?
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>] | {<file> [args...]}
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-f<file> Parse <file>. Implies `-q'
-v Version number
-c<path> Look for php.ini file in this directory
-a Run interactively
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-z<file> Load Zend extension <file>.
-i PHP information
-h This help-c is in the list , but not in the Usage , it should be nice to have diferent php.ini depending on scripts, excpecialy because zend optimizer works for the php/apache and not for cgi php (logically).
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9448&edit=2