CGI Error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
saadatshah
Forum Newbie
Posts: 23
Joined: Fri Jul 05, 2002 5:50 am
Location: Lahore

CGI Error

Post by saadatshah »

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:


can nayone tell me y php is giving this message.....
User avatar
martin
Forum Commoner
Posts: 33
Joined: Fri Jun 28, 2002 12:59 pm
Location: Cambridgeshire

Post by martin »

Can you show the first couple lines of code from the script?
saadatshah
Forum Newbie
Posts: 23
Joined: Fri Jul 05, 2002 5:50 am
Location: Lahore

Post by saadatshah »

Thx...problem is solved ...i dont know how...but solved...can u give me any idea abt this error...or u can send me some code which give this error...so that it help me .....thx
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

It's a file not found error - pretty much a 404 error. I've seen it happen on IIS and the way to fix it on that is to configure IIS to check to see that a php file exists before it trys to run it. That way you will get proper 404 errors instead of that CGI Error.

Mac
NoReason
Forum Commoner
Posts: 51
Joined: Tue Sep 10, 2002 6:19 pm

Problem with this

Post by NoReason »

header("Location: URL");

Thats when I get the error.. and i did not get this error till I upgraded my version of PHP.. I am runnin php 4.2.3, and current version of IIS 5.0

PHPpage sends to app page ----> app page proccess data
<---- App page redirects back previous page,
With new data.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Why bump a whole bunch of threads instead of just starting one new thread saying that none of the other information you found helped?

Mac
Post Reply