Re: Register Globals (more)
| From: | Bogdan Ribic | Date: | Sat, 05 Nov 2005 11:00:23 +0000 |
| Subject: | Re: Register Globals (more) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-225149@lists.php.net to get a copy of this message | ||
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. JohnIf 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/