Re: Re: Variable problems

From: Date: Mon, 10 Mar 2003 15:45:57 +0000
Subject: Re: Re: Variable problems
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-18948@lists.php.net to get a copy of this message
as of php 5 the register globals is not even going to be an option so get used to using $_POST and $_GET !! "Rich Gray" <rich@f1central.net> wrote in message news:KOENJGNHGACBDCEIKHKAGEFDEPAA.rich@f1central.net... > > 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 (#18948) next »