simulation

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

simulation

Post 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
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

register_globals is PHP_PER_DIR, so you can use an .htaccess file to turn it off, permanently :)
Post Reply