That is a fairly generic error. When a CGI application sends a response to a browser, the first portion of the response must be a valid HTTP header. ' Best guess, is that there is a syntax error in your code and that the code is not actually running, but, is failing, thus, it does not produce the header and you get your error complaint.
Hi...
I have windows 2000 advanced server, IIS5 , and PHP4.
I tested the same code with with other web server like "OMNIHTTPD and it works. but when i use IIS5, the cgi error occur.
The following problem occur when I want to move to some PHP file by the following type of link that has a query:
"admin3.php?fuser=$a&fpass=&b" .
The problem is:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
I have been using IIS/PHP4 and I've been quite frustrate by this.
If you are linking one php document to another php document within the script, assure that you are directing it to the right path or it will return this error. Turn on "Check that file exists" under Server Properties, Home Directory, Configuration Button, App Mappings, .php, Edit Button. This way you will get a much more meaningful 404 not found instead of internal error.
However I still get the problem intermittently on working scripts! If you reload the browser 10 times.. it will display "CGI Error" occur 3 times, the rest it will be successful.
It doesn't have the lastest version of Apache, but that is easy to download and install. I would also suggest getting Apache 2.0 as it has awesome Win2k support.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.