|
|
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]
|