ID:               12061
 Comment by:       garlandj 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:

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?


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

[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?

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

[2002-10-22 08:14:01] JoeHa at gmx dot de

I had this error when I use php myAdmin.

The problem was:
I had edit the config.inc.php with wordpad.

The sollution:
editing with textPad

...so long, Joe

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

[2002-10-16 16:10:48] dnocito at accelesoft dot com

I have W2k Server IIS5/PHP4
I was able to fix this issue simply by doing the following:

Open Internet Service Manager
Right Click Default Web Site (or any website using php)
Goto Properties
Click the HOME DIRECTORY tab
Click the CONFIGURATION button
Scroll down the list and select .php
Click Edit button
enable the CHECK THAT FILE EXISTS checkbox.
ok your way out.

This eliminated my problems with this error.

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

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