php as cgi script

From: Ivone Uribe (ivoneu1_at_yahoo.com)
Date: 11/28/03


Date: Fri, 28 Nov 2003 10:13:40 -0800 (PST)
To: php-general@lists.php.net

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/



Relevant Pages

  • Re: Ever seen a mail failure like this?
    ... The mail code is straight out ... website to an email address of that same website. ... If you use this MIME message class and set the Return-Path header and ... Find and post PHP jobs ...
    (comp.lang.php)
  • Re: Show image img src=img.php?img=1.jpg help
    ... When i do that the image type is detected correctly as jpeg, ... But earlier you said this really is a bmp, ... I haven't actually tried mixing session_startwith header(); ...
    (comp.lang.php)
  • auto_prepend_file not working with apache 2.2, windows xp and ph
    ... In order for PHP ... different values for several directives, ... The environment variables are not hashed into the $_ENV. ... (e.g. by adding its signature to the Web server header). ...
    (alt.php)
  • nested tables in a form, need an Excel button moved over a column, has some php
    ... I have a page with a form that is included into a php page. ... some php variables which are headers based on the user choices. ... the form output will go to Excel not to the browser. ... There is a included included header under that says home, ...
    (comp.infosystems.www.authoring.html)
  • Re: !DOCTYPE Problem
    ... I'm getting a header already sent error ... If the <!DOCTYPE is missing, ... If everything else in the php code is correct, ... then it is too late to mess with the header exchange. ...
    (alt.html)