michaellunsford Posted September 16, 2006 Share Posted September 16, 2006 anyone know how to turn [b]OFF[/b] register_globals on godaddy webhosting? putting the [b]php_flag register_globals off[/b] line in .htaccess has absolutely no affect. Quote Link to comment Share on other sites More sharing options...
genericnumber1 Posted September 16, 2006 Share Posted September 16, 2006 php_value register_globals offI think that's it for a .htaccess...I dont know how to edit your php.ini on godaddy though, sorry. Quote Link to comment Share on other sites More sharing options...
AndyB Posted September 16, 2006 Share Posted September 16, 2006 Godaddy FAQ - http://help.godaddy.com/article.php?article_id=85&topic_id=77& Quote Link to comment Share on other sites More sharing options...
trillion Posted September 16, 2006 Share Posted September 16, 2006 This article show how to emulate register globals on an offhttp://usphp.com/manual/en/faq.misc.php#faq.misc.registerglobals Quote Link to comment Share on other sites More sharing options...
michaellunsford Posted September 16, 2006 Author Share Posted September 16, 2006 thanks for the quick replies, guys. Had found the godaddy FAQ already and submitted a ticket (I think) to upgrade the client's godaddy service. Their existing service is PHP 4, and it doesn't accept php directives from .htaccess. It also doesn't have a system root below the public directory, and no way to restart apache even after creating the php.ini.trillion gave me an idea though...[code=php:0]do { if(key($_GET)!="") eval("unset($".key($_GET).");");}while(each($_GET));[/code]presto -- conflicting global variable eliminated. Any idea if this could cause any unforeseen consequences? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.