Click to See Complete Forum and Search --> : Premature end of script headers


anitha_p
03-14-2003, 12:00 PM
Hi,
I am working with php triad on windows xp. php triad has apache 1.3.23 and php4.
In the file I am using a header function to redirect to a page and the errror (Ex: header ("Location: /error.php?e=$status"); )
I get is Internal Server Error. When I look into the error logs it gives
Premature end of script headers: c:/apache/php/php.exe

I have no clue why this is. Is it a configuration problem? problem with php? or a problem with my code? Tried to look around some documentation but dint help much.

Thanks in advance for the help.
Anitha

kinglouie
03-15-2003, 10:10 AM
Hi,

this looks like a configuration problem. Does your installation work with the standard test, a script like that:

<?php

phpinfo();

?>

What results do you get when requesting this file?
In any case I would recommend not to use any out-of-the-box install of php/apache but to use the windows zip-install of php and the apache msi-version, 1.3.27 or the like.

Best regards,


King Louie