You are here: Re: turn register_globals off? « PHP Programming Language « IT news, forums, messages
Re: turn register_globals off?

Posted by Harry Haller on 10/11/05 06:30

On 10 Oct 2005 14:17:46 -0700, "peter" <plaz987@yahoo.com> wrote:

>I just took over the website at work. I am still learning PHP.
>Register_globals are on and the script appears to be coded to take
>advantage of this. I know how to recode the script, but am unsure how
>to turn them off when I am done. I have googled and came up with
>placing
>
>php_flag register_globals off
>
>in the .htaccess file.
>
>I did this without recoding the script and the script still worked, so
>I am assuming I did not turn them off. Please help.
>
>
>Thanks,
>
>Peter

If you turn register_globals offyou may have to do a huge amount of
recoding your global variables - good luck.

In the php.ini file change the line from:

register_globals = On

to

register_globals = Off

My php.ini is in c:\php - but I am working with Windows.

 

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

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