Quote:
Originally Posted by eukhost.com
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.