Re: Register Globals
| From: | Simas Toleikis | Date: | Mon, 25 Oct 2004 20:10:09 +0000 |
| Subject: | Re: Register Globals | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200285@lists.php.net to get a copy of this message | ||
And this won't pose as a security risk to me? It will. You could emulate namespaces in php. Do something like this:function init_namespace() { // all your script code goes here } init_namespace(); // notice the call This way any globally registered post/get/cookie etc variables wont be accessible by your code without extra global keywords. Or go another way to write your code register_globals independant.