I am getting the following error after posting a simple form to insert data in the database(mysql).

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

I have given the wwwroot folder execute permissions as well as full cto the IUSR_machinename account for that folder.

I am using win2000,IIS 5 and PHP 4

I know this problem has been encountered before on this forum, but I couldnt search for a solution. Any help would be greatly appreciated.
Thanks,Udit

    sir
    I too encountred the same problem and when i went in details i found that the file i am saving was not saved with PhP extention so make sure that ur file saved with right extention and try again
    hope this will work
    Kshitij

      Check if the same permissions are applied to php.exe and the libraries.
      Eventually, explicitly allow IUSR_YourComputer and eventually IWAM_YourComputer to execute those files. If this doesn't work, try it with an Everyone:Full control on your PHP folder and subfolders.
      At first glance, your IIS5 config is correct, it wouldn't have returned this message if PHP had not been correctly installed.

        Well, Just for kicks, I saved my form as an asp page and submitted it..I got the same error..So I am guessing its some kind of IIS configuration problem.

        This is really bugging the hell out of me!

          Alrite..I found a work around for this. Originally, my php scripts were in the wwwroot/script folder.

          What I did was to create a new folder..say c:\phptest. Right click,sharing--> websharing->give it read/execute permissions.

          Put my old php scripts in there..boom..worked like a charm.

          Lets hope I dont encounter any more problems.

            a year later

            I get the same problem, but randomly. Hitting refresh on the page will make it go away and the page will display as expected. The randomness makes it very hard to diagnose. Any ideas?

              12 days later

              I am having the same problem on a server and it is random. I am starting to think that it is related to PHP-IIS and something to do with connecting to the database server (MS SQL).
              It is like IIS almost immediately says the page is not there, php completes the page and a refresh now can see the page. Creating a new directory is not an option, so I am still looking for an answer.
              Anyone out there solved this???
              Thanks Bill

                Write a Reply...