Is there a way to bypass the register_globals=Off in php.ini?
I have a large set of codes, and it needs register globals on. However, is there a PHP script/library that can enable globals for my script?
I cannot turn register_globals to "on"
Is there a way to bypass the register_globals=Off in php.ini?
I have a large set of codes, and it needs register globals on. However, is there a PHP script/library that can enable globals for my script?
I cannot turn register_globals to "on"
extract ($GET);
extract ($POST);
Should do ya
I just add these two lines:
extract ($GET);
extract ($POST);
and it is OK?
At the top.
It will extract all of the items of the arrays and turn them into variables in their own right.
This is basically the same behaviour as with register globals.
I have a config.php that is being used by all my PHP codes. I can put it at the top and it should be applied to all PHP scripts that use the config.php?
Yup.
thank you madwormer!