PDA

View Full Version : Register_globals


Rip-rip
07-10-2003, 01:15 PM
I´ve got the request to put the Register_global on. I have no idea what it is, what it does. And if i want to put it on, i have no idea how.

Please help.

DirectAdmin Support
07-10-2003, 02:43 PM
Hello,

Basically, you just need to edit your php.ini file:

/usr/local/lib/php.ini

find the line:
register_globals = Off

and set it to
register_globals = On

and restart apache:
service httpd restart


or, if its a per user basis, read:
http://www.directadmin.com/forum/showthread.php?s=&threadid=118&highlight=registerglobals

John

Guust
07-10-2003, 03:01 PM
put a file in their HTML directory named .htaccess and put the following line in it:

php_value register_globals 1

I got this one from Chris, thanx Chris:)

Rip-rip
07-10-2003, 03:26 PM
thnx for the quick response.

If i get it right, Register_globals standard is turned off, and only the domeins with this file in it, has the globals on?

DirectAdmin Support
07-10-2003, 03:28 PM
Yes, the .htaccess file will override any settings.

John