I had similar problems with close to the same configuration and changed strategies completely by having the IIS server handle the header output. This was done by making the IIS server use the php DLL instead of the .exe as a CGI. My php files work fine now. It took some digging, but there is an installation/configuration explanation in the MS IIS help files.
"Csa" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Check if you have installed PHP in a folder to which only the administrator > has access to. (Either PHP or the application that is calling PHP.) > Regards, > csaravind > "David Redmond" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi All, > > I am just wondering if anyone out there using PHP (4.2.3, bug also affects > > previous versions and the latest CVS snapshot) with IIS5 and receives the > > "CGI Header Error" in PHP scripts that use an MSSQL DB connection. > > > > This bug has been logged on the PHP buglist > > (http://bugs.php.net/bug.php?id=9852) however the moderators have closed > the > > bug without it being investigated correctly. > > > > I will re-itereate the points that I have listed in the bug thread, they > > are; > > > > - I'm running PHP 4.2.3, IIS5, Win2K (SP3 + Q326830, Q295688, Q147222). > > - IIS is configured to use Host Header > > - The error message that is returned via the script is; > > > > <head><title>Error in CGI Application</title></head> > > <body><h1>CGI Error</h1>The specified CGI application misbehaved by not > > returning a complete set of HTTP headers. The headers it did return > > are:<p><p><pre></pre> > > > > - If the slot is run as a local administrator then the error does not > occur, > > similiary if you remove the IUSR access to the slot so that you are > prompted > > for authentication, and you use an administrator account. > > - At the same time that the error is generated, a popup also occurs on the > > console with the details; > > > > TitleBar: php.exe - Application Error > > > > The application failed to initialize properly (0xc0000142). Click OK to > > terminate the application > > > > - Any other PHP script which does not use an MSSQL connection works > without > > a problem, this also includes scripts which use MySQL. > > > > If anyone has encountered this problem before and found a resolution for > it, > > please post it here. As you may read from the bug thread, the developers > of > > PHP seemed to have passed this off as an IIS issue. > > > > Cheers > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php