From: Magnus S. <st...@hk...> - 2002-07-29 23:58:36
|
Jon wrote: > > On Mon, 2002-07-29 at 15:57, Magnus Stenman wrote: > > something like this (suggested by Jacek Tomaka, code from Ray Black III) > > ... > > > > --snip-- > > > > > this removes all use of magic globals, works on all versions of > > PHP (the assignments aren't even made on newer versions), > > and regardless whether register_globals is on or off. > > > > > > to find places where magic globals are used -- turn off > > register_globals :-) > > > > sounds great. could we add some logic to handle $_REQUEST too? Whether to use _GET etc or _REQUEST or something SM-specific is best answered by someone knowing more about PHP than me. I guess it depends on performance and where PHP is heading wrt the request variables. /m > > - Jon > > -- > jo...@tg... > > Administrator, tgpsolutions > http://www.tgpsolutions.com |