Problem with PHP as CGI
| From: | Richard Kurth | Date: | Thu, 24 May 2001 14:31:49 +0000 |
| Subject: | Problem with PHP as CGI | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-54148@lists.php.net to get a copy of this message | ||
I have php config as a cgi and I put this at the top of my script
#!/usr/local/bin/php -q
when ever I run this script at root in
telnet I get this message below. I configured php like this
./configure --with-mysql
make
make install
I have set this up on a number of servers But I have never had this
problem before any id why I am getting this.
Error in argument 1, char 3: option not found
Error in argument 1, char 3: option not found
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>.
-l Syntax check only (lint)
-m Show compiled in modules
-i PHP information
-h This help
Best regards,
Richard
mailto:rkurth@pacifier.com