Hi

I am trying to access this url on neon server ,Location: http://website/index.php?action=index&module=Home

Now on above url after login i get the following error

===============================

CGI Error

The specified CGI application misbehaved by not returning a complete set of HTTP headers.

===============================

I already checked that all my included files don't have any carriage returns or spaces before or after the php-code enclosing tags.

The error only happens the FIRST TIME i load the page!! After clicking/ refresh the page (browser IE 6.0) it is displayed ok.

Platform: Windows 2003
PHP : 5
IIS : 6.0

When i run the same application on my local system (Widnows XP,php5 & IIS 5) it works fine,and when i copy the application to the server (Win 2003,PHP5,IIS6) it gives me the above mentioned error.

Do u have a clue, please??

-Bhavin

    The typical reason for that to happen is that the file that was supposed to be run couldn't be found at all.

      I do not think so.If this could be the reason then in that case i could have given me page not found error.

        Okay. It's just that whenever I'm missing a script that's being requested I get the error message you're getting. But then, I'm running Apache (Apache would hand the responsibility for running the script on to PHP; PHP wouldn't have anything to do and so does nothing. Apache gets upset because PHP didn't send anything back).

        Maybe that makes the difference you got when you checked the idea.

          6 days later

          The CGI is known to have issues and IIS 6 does not work too well with php. partly because php is intended for apache and IIS is just not a priority. IIS is severely inadequate in terms of security and reliablility much illustrated by your problem. If you will build your house on sand make sure it's not quicksand. the best advice for now is learn ASP i'll probably be flamed for this but it is the only alternative to php with similar syntax and it works on IIS which scince you've now already paid for you may want to keep until your already paid amount expires at which point you can run home and nestle in to PHP's loving arms

            Write a Reply...