php register_globals

Problems with the Linux version of XAMPP, questions, comments, and anything related.

php register_globals

Postby Red Dragon » 31. July 2009 05:10

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.
Red Dragon
 
Posts: 26
Joined: 24. July 2009 01:15

Re: php register_globals

Postby Wiedmann » 31. July 2009 09:30

and how do I turn it off.

In the file "php.ini".
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: php register_globals

Postby Red Dragon » 31. July 2009 13:14

should i turn them off? or will xampp stop working if i do
Red Dragon
 
Posts: 26
Joined: 24. July 2009 01:15

Re: php register_globals

Postby caltuna » 01. August 2009 22:24

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.
caltuna
 
Posts: 111
Joined: 05. May 2009 16:35

Re: php register_globals

Postby Red Dragon » 01. August 2009 23:47

i just turned off xampp then change it in the php.ini and turned it back on
Red Dragon
 
Posts: 26
Joined: 24. July 2009 01:15


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 2 guests