Re: [PHP] No Global Code Fixing

2003-01-04 Thread Jason Sheets
If you do that you might as well just turn on register globals, you should look at the $_REQUEST variable, it combines $_POST, $_GET and $_COOKIE into one array so you can just reference $_REQUEST['variable'] for example $_REQUEST['one']. Jason On Sat, 2003-01-04 at 11:50, Michael J. Pawlowsky wr

Re: [PHP] No Global Code Fixing

2003-01-04 Thread Tularis
NOTE: this basicly mimics the way register_globals works. I use this code to fix register_globals aswell as the magic_quotes_gpc: $global = @array($_SESSION, $_SERVER, $_COOKIE, $_POST, $_GET, $_FILES, $_ENV); $global_old = @array($HTTP_SESSION_VARS, $HTTP_SERVER_VARS, $HTTP_COOKIE_VARS, $HTTP

Re: [PHP] No Global Code Fixing

2003-01-04 Thread Michael J. Pawlowsky
Hey that's great... I didn't know about $_REQUEST I suppose the order of overlapping is set in php.ini I think I saw that somewhere. Thanks As for tunring it back on... in .htaccess I like the idea of having cleaner code *** REPLY SEPARATOR *** On 04/01/2003 at 1

Re: [PHP] No Global Code Fixing

2003-01-04 Thread Michael J. Pawlowsky
I just found a better answer, but still open to suggestions with the URI : http://rc.mikeathome.net/test/index.php?one=1&two[]=2&two[]=3&three=3&key=This%20is%20the%20key I tried this: $value){ ${$key}=$value; } echo $one;

Re: [PHP] No Global Code Fixing

2003-01-04 Thread Rasmus Lerdorf
Why don't you just use $_REQUEST['keyword'] ? On Sat, 4 Jan 2003, Michael J. Pawlowsky wrote: > Well I've been fixing up all my code (and other peoples which is worst) getting >ready to do an upgrade to 4.3. and turning off globals and warnings on. > > I very often move parameters that were once

[PHP] No Global Code Fixing

2003-01-04 Thread Michael J. Pawlowsky
Well I've been fixing up all my code (and other peoples which is worst) getting ready to do an upgrade to 4.3. and turning off globals and warnings on. I very often move parameters that were once POSTed as a GETs. For instance... some one does a search but is not logged in, they can see the resul