PHP - The specified CGI application misbehaved

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
wozzaofrare
Forum Newbie
Posts: 2
Joined: Mon Jan 17, 2005 6:26 am

PHP - The specified CGI application misbehaved

Post by wozzaofrare »

Hi

Does anyone here have any knowledge of how to overcome a random problem where randomly the browser will return the following message:

The specified CGI application misbehaved the headers it returned are:

and thats it

It happens completely at random, most the time everything is fine, usually this happens on one page at complete random and the only way to get it to work is by refreshing the browser

How can I overcome this issue?

we are using NT server with IIS 4 and don't say to me update because this problem has been logged to happen with Windows 2003 servers running the latest IIS

Yes we are using PHP as a cgi application

90% of the time the scripts work, 10% of the time we get this random error

Is there a way you can actually redirect the webserver to another page if this error occurs?

PHP.net has a topic on this issue which was of ZERO help to me and the hotfix from Microsoft doesn't apply to NT servers
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Have you tried using another web server, such as Apache? What about using the SAPI version of PHP? Which version of PHP are you using? What's the code involved in this failure?
wozzaofrare
Forum Newbie
Posts: 2
Joined: Mon Jan 17, 2005 6:26 am

Post by wozzaofrare »

apache would be perfect! but Im not using apache and its not an option either

using the latest stable version of PHP

and its got nothing to do with the code because the code works, this is an error that occasionally occurs at pure random on purely random pages

the error has to do with using session_start()

the session headers are obviously playing up and the webserver redirects pages to the CGI error

anyone know anything??
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Latest stable PHP, being php4 or php5?

I'd suggest posting the code, in it's entirity now that you think it's with the session.
Post Reply