Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Utter beginner

Status
Not open for further replies.

paulcarey

Programmer
Jun 15, 2001
45
GB
I have a site that has a download button that throws up an error when pressed. In the error log this is printed:
premature end of script headers: c:/php/php.exe

What does it mean?
What do I do?

Please bear in mind I am not an administrator and therefore will be easily blinded by Jargon!

Cheers
Paul
 
It means that the script executed did not return a full set of HTTP headers. From the error it looks like you are using PHP as a CGI.
Usually it's better to use the Apache module instead, it doesn't give you these errors. You should read the install instructions for installing PHP as an Apache module on windows. If I remember it correctly, you only have to copy 3 dll's from the PHP directory.
If you want to keep on running PHP as a CGI, you have to make sure that the scripts acts like CGI apps, by returning the Content-type header at least. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top