ID:               12061
 Comment by:       jwhatcher at hotmail dot com
 Reported By:      peters at connection dot ca
 Status:           Bogus
 Bug Type:         IIS related
 Operating System: Win 2K
 PHP Version:      4.0.6
 New Comment:

I am using advance server running iis on several machines with php. I
understand that this error means many things. What does it mean when
you get it intermit tingly? I go to the page and get the error. Refresh
the page and it loads. It doesn't happen every time nor does it occur
on the same page. But it happens frequent enough to be a problem. Is
there any correlation between the exe version and the error. Reason I
ask is because on one server I run the dll I have not had one single
502 in my log file. But with the exe it occurs every day.


Previous Comments:
------------------------------------------------------------------------

[2003-04-18 03:00:30] reznor at geeksanon dot ca

Hello,

I'm writing in regards to this error----->
  cgi error:
  The specified CGI application misbehaved by not
  returning a complete set of HTTP headers. The headers it
  did return are:

I've been to every message forum around the world and back and got
nothing.  What it did get me looking at lots was the php.ini file.  I
run a Win 2000 Server with the latest greast PHP 4.3.1 mySQL and IIS. 
When it hit me like a bull in a china shop, I've got this all up and
running on my XP pro system to test my code on, let's look at that
php.ini file, so I did.  And I saw it.....

XP setting: doc_root =
IIS setting: doc_root = C:\Inetpub\wwwroot

OK so I set my IIS php.ini doc_root to the XP setting
doc_root = 

...and WaBLAM! It worked!

------------------------------------------------------------------------

[2003-02-26 14:06:32] garlandj at hotmail dot com

The "misbehaving" error is generated from working with notepad, then
saving the file:
myphpfile.php

What actually gets saved is this:
myphpfile.php.txt

Be sure to drop down the menu to All Files *.* to eliminate the default
.txt extension from be appended. Alternatively, enable viewing of
file-extensions and delete the .txt from the end of the file.

I cannot however figure out the "undefined variable" problem with
Windows 2000/XP.  If you have a form and create a post action, the data
should be passed so that:
I should be able to use HTML like this:
<input type="text" size="5" value="" name="myvar">
And then use PHP in the same, or separate PHP file to reference the
variable with $myvar.  This does NOT work with Windows.  When this
variable is referenced in the code, an undefined variable error
results.  Editing the php.ini file is NOT a solution, but does get rid
of the error (of course!)  Instead of displaying the error, the data is
non-existent/empty/not displayed/inacessible.

I found a webpage that used the following to obtain all variables, so
the data IS being processed and IS accessible, but not as it should
be.

This code (found elsewhere) will list all variables and correctly
display their contents:
<?php 
    print "Posted variables: <br>";
    foreach($HTTP_POST_VARS as $key=>$value)
        print $key . " = " . $value . "<br>";
?>
I suppose one could use this as a work-around.
Any ideas?

------------------------------------------------------------------------

[2003-01-24 22:11:48] ecorriel at hotmail dot com

regarding the entry: [24 Apr 2002 10:37am] [EMAIL PROTECTED]

this is not a bug, you are just using dlls from previous versions of
PHP. get the new dlls and overwrite the old ones.  i just posted a note
about this under the Installation for Windows section of the Manual.

------------------------------------------------------------------------

[2003-01-05 04:09:32] wyared at yahoo dot com

I was facing this problem when writing a code on the w9x Notepad and
modifying it by win2k editors or viseversa ... seems to be a problem
converting between unicode and ASCII.. in my humble openion (donno if
it's even right!) do it all on one editor.

------------------------------------------------------------------------

[2003-01-02 09:12:54] codingforums at couchfort dot org

I have the same problems with phpmyadmin producing a CGI error in both
panes after locking the anonymous IIS user out of the phpmyadmin
directory. I provide a credentials for a user with proper permissions
to that folder when accesssing it, but I still get the CGI errors. I
don't think it's reasonable to grany anonymous users access to this
administrative tool...

Any ideas?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/12061

-- 
Edit this bug report at http://bugs.php.net/?id=12061&edit=1

Reply via email to