Page 1 of 1

php register_globals

PostPosted: 31. July 2009 05:10
by Red Dragon
Hi
I'm installing phpbb forum and it says that i should turn register_globals off. Should I turn it off and how do I turn it off.

Re: php register_globals

PostPosted: 31. July 2009 09:30
by Wiedmann
and how do I turn it off.

In the file "php.ini".

Re: php register_globals

PostPosted: 31. July 2009 13:14
by Red Dragon
should i turn them off? or will xampp stop working if i do

Re: php register_globals

PostPosted: 01. August 2009 22:24
by caltuna
Red Dragon wrote:should i turn them off? or will xampp stop working if i do


You can create an .htaccess file and put:

php_flag register_globals off

in it.

XAMPP will still run, but if you have code that requires them to be on, you would definitely break that code. It is considered insecure to code a PHP script using register_globals turned on. Go an turn them off and see if your stuff still works. If not, turn it back on. If you change php.ini you have to restart Apache (TTBOMK) which is why it is often easier to use a .htaccess file.

Re: php register_globals

PostPosted: 01. August 2009 23:47
by Red Dragon
i just turned off xampp then change it in the php.ini and turned it back on