Page 1 of 1

[how to on or off register_global]

Posted: Sun Apr 16, 2006 8:54 pm
by cloud_0085
hello, can someone tell me how to on or off the register_global??
thanks. :)

Posted: Sun Apr 16, 2006 8:58 pm
by feyd
.htaccess, web server configuration file (depending on server) and in php.ini

Posted: Sun Apr 16, 2006 9:24 pm
by Chris Corbyn

Posted: Mon Apr 17, 2006 10:01 am
by Ambush Commander
Although anything from inside the PHP script won't do much since the globals have already been registered... ;-)

Posted: Tue Apr 18, 2006 3:09 am
by Maugrim_The_Reaper
.htaccess file containing the line "php_flag register_globals off"...

That assumes you are using Apache.

Posted: Tue Apr 18, 2006 11:31 pm
by cloud_0085
thanks a alot.. :lol:

Posted: Sun Apr 23, 2006 2:11 pm
by phpwalker
I used ini_set(), however, it doesn't work. It doesn't show any error as well, I assumed that it has already taken effect. When I check on phpinfo(), it was still the same setting. Such as I turn on the error_log, but still remained off.
What is the problem? Priviledge problems?

Posted: Sun Apr 23, 2006 2:42 pm
by feyd
http://php.net/manual/en/ini.php lists when and where you can set directives.