php as cgi script
| From: | Ivone Uribe | Date: | Fri, 28 Nov 2003 18:13:40 +0000 |
| Subject: | php as cgi script | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-171293@lists.php.net to get a copy of this message | ||
Hello all!
I have this problem:
I need to run a php
(http://xx.yy.zz/cgi-bin/pruebacgi.php) that contains
that line
#!/usr/local/bin/php -q
I get it an error from my apache log:
malformed header from script. Bad header= php
[options] -r <cod
e>: /www/cgi-bin/pruebacgi.php
I hope someone can help me! I don't know what can I
do.
In fact if I run any php that have this line
#!/usr/local/bin/php
I get an error like that
Premature end of script headers:
/www/cgi-bin/pruebacgi.php
I have installed the php4.3.3 and apache 1.3.28.
I configured the php with this line
./configure --with-mysql
--with-apache=../apache_1.3.28 --enable-track-vars
Do I need to configure some else in my apache or php
configuration file. Whan can I do to solve this
problem?
Thanks in advance!!!!!!!!
KISSES
Ivone
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/