#25493 [Opn->Fbk]: Notice: Undefined variable with register_globals = on

From: Date: Thu, 11 Sep 2003 15:17:23 +0000
Subject: #25493 [Opn->Fbk]: Notice: Undefined variable with register_globals = on
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47454@lists.php.net to get a copy of this message
ID: 25493 Updated by: magnus@php.net Reported By: jfreier at manleygroup dot com -Status: Open +Status: Feedback Bug Type: IIS related Operating System: Window 2000 PHP Version: 4.3.3 New Comment: Are you editing the correct php.ini-file ? Check the output form phpinfo() to see what file you should edit. If you edited the wrong file, please mark this bug as "Bogus". Previous Comments: ------------------------------------------------------------------------ [2003-09-11 10:00:59] jfreier at manleygroup dot com Description: ------------ Please Help, Im run IIS, and Apache on the same server. I have changed the register_globalveriable = On, restrated my comp and sure enough it worked for apachie, BUT, when i run the same script under IIS 5.0 i get the same error. Notice: Undefined variable: ~I thnk that the new version of PHP, php.ini is not setting right with windows IIS Reproduce code: --------------- index.php <html> <head><title>TestForm</title></head> <body> <form action=index2.php method=post> <input type=text name=a> <input type=submit value=testit> <input type="hidden" name="action" value="form_submitted"> </form> </body> </html> index2.php <html> <head></head> <body> <?php print $a; ?> </body> </html> Expected result: ---------------- What ever you type in Actual result: -------------- Notice: Undefined variable: c:\ line 5 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25493&edit=1

« previous php.bugs (#47454) next »