RE: [PHP] running php as cgi script

From: Date: Mon, 18 Nov 2002 14:30:07 +0000
Subject: RE: [PHP] running php as cgi script
Groups: php.general 
Request: Send a blank email to php-general+get-124909@lists.php.net to get a copy of this message
> -----Original Message----- > From: Scott [mailto:gildedpage@comcast.net] > Sent: 17 November 2002 20:55 > To: php-general > Subject: Re: [PHP] running php as cgi script > > > Well, I've got a few test scripts to run by following the > suggestions from > the posts. There's just one thing that's not quite right yet. The > "#!/usr/bin/php" line appears at the top of the page. For > instance when I > run the following script from the cgi-bin: > > #!/usr/bin/php > <? > phpinfo(); > ?> > > The phpinfo page comes up fine, but "#!/usr/bin/php" appears > at the top. > This happens whether I call the script "test.php" or > "test.cgi". Appreciate > any tips on how to get rid of it or why it's there. H'mm -- there's at least one reasonably recent version of PHP where this behaviour is recorded as a known bug, so it's probably worth checking at http://bugs.php.net/ to see which one this is (a search for "shebang" should do it). It's 99.9% sure it's been fixed, so just searching "Closed" bug reports should be sufficient. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#124909) next »