Re[2]: [PHP] Problem with PHP as CGI

From: Date: Thu, 24 May 2001 16:30:55 +0000
Subject: Re[2]: [PHP] Problem with PHP as CGI
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-54156@lists.php.net to get a copy of this message
Hello Stuart, yes there is a <? as the first line of my script as a mater of facket I can run a script that looks like this and I still get the problem #!/usr/local/bin/php -q <?php echo "HELP"; ?> Wednesday, May 23, 2001, 9:06:08 PM, you wrote: Stuart J. Browne> "Richard Kurth" <rkurth@pacifier.com> wrote in message Stuart J. Browne> news:10170849955.20010524073149@pacifier.com... >> >> 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. > >> Error in argument 1, char 3: option not found >> Error in argument 1, char 3: option not found Stuart J. Browne> Code snippett would help, but it sounds as if the first line (after the Stuart J. Browne> hash-bang) is NOT <?. Stuart J. Browne> I've found that oddities occur without that as the first line of your Stuart J. Browne> script.. Stuart J. Browne> bkx -- Best regards, Richard mailto:rkurth@pacifier.com

« previous php.general (#54156) next »