RE: [PHP-WIN] Re: Variable problems

From: Date: Mon, 10 Mar 2003 13:01:02 +0000
Subject: RE: [PHP-WIN] Re: Variable problems
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-18944@lists.php.net to get a copy of this message
> Thanks, but I found out something really interesting! I was using > php-win32 > version 4.3.0 and it would not process the variables. I took the > same script > and ran it a buddies server with version 4.0.6 and it ran fine. I unloaded > 4.3.0 and loaded 4.0.6 on my server and the scripts ran fine! > Make sense to > you? Maybe there are some bugs in 4.3.0. > > Reggie P > Reggie That is because with v.4.0.6 register_globals is set to On in php.ini by default. The default now is Off for security reasons (see http://www.php.net/manual/en/security.registerglobals.php for more info). IMO you are making a bad move going back to v4.06, you should get used to writing your scripts with globals off i.e. using $_POST/$_GET etc etc - if you have to have globals on then you should re-install 4.3.1 and switch globals on in your php.ini file or do an extract() to emulate globals being on.... Rich

« previous php.windows (#18944) next »