View Single Post
  #12 (permalink)  
Old 10-11-2006, 10:15
brouwer brouwer is offline
Member
 
Join Date: Oct 2006
Location: Nieuwkerken-Waas; Flanders
Posts: 32
Default

Quote:
Originally Posted by eukhost.com View Post
You mean that the code should be as follows :-

$admin = "0";
php_flag register_globals on

Is this what you want to mention ?
Well, if you put that second line in your .htaccess (or not if on is the default option) and use the first line in your script, it will be safe.
But then you have to do that for all your variables which is more work and if you forget one, the whole script can become unsafe. Simply turn register_globals off is still the most safe thing to do, in that case, you can safly use variables without worrying.
__________________
Êl síla nan lû e-govaded vín!
Reply With Quote