Re: #!/usr/bin/php in output?

From: Date: Tue, 05 Mar 2002 22:07:39 +0000
Subject: Re: #!/usr/bin/php in output?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87366@lists.php.net to get a copy of this message
Why do you have "#!/usr/bin/php" in your script?! You are running it thru the webserver. You shouldn't need that line. --- Mike Eheler <meheler@idearesource.com> wrote: > Having a bit of a weird problem with using PHP as > CGI. The problem is > this.. the output is returning the #!/usr/bin/php > line from the file. > > Example: > > /cgi-bin/test: > > #!/usr/bin/php > <? > echo "Hello World!\n"; > ?> > > Then in a web browser: > http://www.example.com/cgi-bin/test: > > #!/usr/bin/php > Hello World! > > Has anyone else experienced this problem or know > what's causing it? > > Mike > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== Anas Mughal anasmughal@yahoo.com anasmughal@hotmail.com Tel: 973-249-6665 __________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/

« previous php.general (#87366) next »