cgi - switch not working?!
| From: | Jamie Burns | Date: | Thu, 16 Aug 2001 23:04:56 +0000 |
| Subject: | cgi - switch not working?! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-63108@lists.php.net to get a copy of this message | ||
hi...
i have compiled php as a cgi binary on my linux box. i want to be able to
tell the binary which ini file to use on the command line, which i thought
would be the -c switch.
entering:
./php -?
reveals:
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 Do not chdir to the script's directory
-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>.
-l Syntax check only (lint)
-m Show compiled in modules
-i PHP information
-h This help
but entering either of:
./php -c /path/to/ini/ mytest.php
./php -c /path/to/ini/php.ini mytest.php
tells me that it is using the following (and incorrect) ini file:
/usr/local/lib/php.ini
does anybody know how to accomplish this?
regards,
jamie burns.