php cgi premature end of script headers
| From: | Gregor Bruhin | Date: | Mon, 27 Nov 2000 22:54:26 +0000 |
| Subject: | php cgi premature end of script headers | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-27488@lists.php.net to get a copy of this message | ||
,
I use the latest php and apache.
in the shell when I execute my php and my perl script I get (this is
correct!):
----------------------------------------------------------------------------
--
./test.cgi
location: http://www.yahoo.com
----------------------------------------------------------------------------
--
if I try trough the web I get a premature end of script header for the php
script and the perl script works, and in the shell the output is exactly
the same so why ??? i tried to make su httpd ans both output are the same
and are ok ...
Here is the source of the scripts:
----------------------------------------------------------------------------
--
#!/usr/bin/php -q
<?php
echo "location: http://www.yahoo.com\n\n";
?>
----------------------------------------------------------------------------
--
#!/usr/bin/perl
print "location: http://www.yahoo.com\n\n";
----------------------------------------------------------------------------
--
Thanks for your help !
Gregor Bruhin
gb@swisszone.ch