You are here: Re: Register Globals (more) « PHP « IT news, forums, messages
Re: Register Globals (more)

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация