|
|
Posted by Bogdan Ribic on 11/05/05 13:00
John Taylor-Johnston wrote:
>
> How do I rebuild this peice of code to be register_globals=off friendly?
> Just when I thought I was getting good. This keeps up, I'm changing back
> the php.ini myself.
>
> John
>
If your code absolutley needs register_globals and you don't have the
time to rewrite it, do this:
@import_request_variables('GPC', '');
Note that @ is there to suppress error message about non-recommended
usage of the function, ie no prefix.
--
Open source PHP code generator for DB operations
http://sourceforge.net/projects/bfrcg/
Navigation:
[Reply to this message]
|