View Full Version : CGI Error


erictheman
04-06-2004, 11:28 PM
Okay, here's something weird. I have a Windows server, which I run a website on. I use PHP for my pages, meaning that my pages have a .php extension (nothing fancy, usually just PHP includes).

Anyways, whenever I try to access a page with a .php extension, the following error comes up.

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

However, this error does not come up for any other files except those that have a .php extension.

Here's an example of two identical pages, one with a .php extension and one with a .html extension.

http://www.nothinggoldcanstay.com/new/header.html
http://www.nothinggoldcanstay.com/new/header.php

The oddest thing of all, is the fact that I don't use any CGI files at all.

sk89q
04-07-2004, 01:04 AM
This might help...

http://www.mail-archive.com/php-windows@lists.php.net/msg18486.html

Read the followups, of course.

erictheman
04-07-2004, 01:12 AM
no offense, but try to give advice that is somewhat relevant.
don't just go into google and type in the error because i'm way ahead of you.

sk89q
04-07-2004, 01:15 AM
But it is relevant. That means there's possibly a line within your script that's causing it... or there could be something utterly horrible and wrong.

What server are you running on?

erictheman
04-07-2004, 02:08 AM
both of your questions can be answered from my original post...

it happens for all .php pages. it does not matter what the file contains.

it's running a Windows server.

sk89q
04-07-2004, 02:53 AM
No, the server software, not what it's running on.

erictheman
04-07-2004, 03:05 AM
would you like a picture of it, i don't get why you don't believe me. it's a Windows server. the version is irrelevant.
http://images.amazon.com/images/P/B00003JAUA.01.LZZZZZZZ.gif

pb&j
04-07-2004, 03:51 AM
this is not a relevant answer, but just to note...

CGI = common gateway interface.

PHP as well as Perl may be referring to a CGI application. it is just very common for a Perl script to be referred to as CGI.

perhaps do a search on the microsoft knowledge base?
http://support.microsoft.com/?scid=fh;[ln];kbhowto

sk89q
04-07-2004, 05:30 AM
Windows is not a web server. IIS is.

erictheman
04-08-2004, 01:11 AM
figured it out, thanks for helping...

JAshtonX
07-08-2004, 11:17 PM
Could you expalin what the problem was and how you fixed it erictheman