Re: Register Globals

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux