View Single Post
  #8 (permalink)  
Old 04-04-2007, 12:41 PM
melkior_inactive
Guest
 
Posts: n/a
iTrader: / %
Default

Thanks Temi!
Bottom line is that it's best to have register_globals set to off and use associative arrays $_POST and $_GET in your scripts.
If you really have a need to set them to on or you can't change the setting than, make sure that all variables in your code are properly initialized.

Also note that it's quite possible that in the future versions of PHP register_globals will be set to off and that you wan't be able to change it.

Also a few tips:
if you want register_globals on (which I wouldn't recommend)
than you can put this into your .htaccess file:
Code:
php_flag register_globals on
And if you want to set them off (recommended)
than put this into your .htaccess file:
Code:
php_flag register_globals off
Reply With Quote