> -----Original Message-----
> From: Scott [mailto:[EMAIL PROTECTED]]
> 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: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to