PDA

View Full Version : register_globals = off?


Kyle
07-20-2003, 08:38 AM
Can we turn register_globals from off to on? Or is there a specific reason why it is left off by default?

l0rdphi1
07-20-2003, 09:44 AM
It's generally bad to program PHP with the requirement of register globals. It's bad for security, it's bad for efficiency; it's -as I said- generally bad. :)

If you need it, however, DA is in no way dependent on PHP.

Ryan
07-20-2003, 10:45 AM
Originally posted by Kyle
Can we turn register_globals from off to on? Or is there a specific reason why it is left off by default?

I do believe that register_globals off is the new default for php. I would highly reccomend leaving it off and only enable it on a client-by-client basis via .htaccess

Kyle
07-20-2003, 09:53 PM
Thanks for your help, you guys.

heggied
07-21-2003, 02:30 AM
There's good background on this at the exceptionally useful online PHP manual (http://uk2.php.net/register_globals).