Page 1 of 1

simulation

Posted: Tue Sep 13, 2005 11:04 pm
by s.dot
Currently my paid hosting server has PHP set to register_globals = ON

Since this is how I learned PHP, its OK at the moment. For a while now I've been going through and changing everything from $var to $_POST['var']; etc. And I finally think I am done.

Is there any way I can simulate register_globals being OFF?

Would ini_set() work? I don't think it works during run time. Should I have my own php.ini file since I am on a shared server? Lots of questions... :P

Posted: Tue Sep 13, 2005 11:07 pm
by feyd
register_globals is PHP_PER_DIR, so you can use an .htaccess file to turn it off, permanently :)