strange shell script, #!/usr/local/bin/php doesnt work, php file.php does...
| From: | aplist at modperlhelp dot com | Date: | Tue, 06 Jun 2000 23:05:22 +0000 |
| Subject: | strange shell script, #!/usr/local/bin/php doesnt work, php file.php does... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-1154@lists.php.net to get a copy of this message | ||
Im having a strange problem...
if i run a php type shell script with the format:
commandline> php -q somefile.php3
commandline>
Set-Cookie: YA_SESSION_ID=4cb6bcbef9167aff1a2d314ec01ba2fd;
expires=Tuesday, 11-
Jul-00 21:57:57 GMT
.
.
.
It works perfect...
However running the same somefile as
commandline> ./somefile.php3 with the #!/usr/local/bin/php -q
option at the top of somefile.php3
yields me:
php: invalid option --
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
-p Pretokenize a script (creates a .php3p file)
-e Execute a pretokenized (.php3p) script
-c<path> Look for php3.ini file in this directory
-i PHP information
-h This help
ive tried numerous things to no help...!
this is running linux 2.2.15 php 3.0.16
Any ideas?
as a last resort i can run everything ias php filename.php3 but preferred
the #!/... method.
Thanks!