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/

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

Reply via email to