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. Link to comment https://forums.phpfreaks.com/topic/20946-godaddy-web-hosting-and-register_globals/ 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. Link to comment https://forums.phpfreaks.com/topic/20946-godaddy-web-hosting-and-register_globals/#findComment-92831 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& Link to comment https://forums.phpfreaks.com/topic/20946-godaddy-web-hosting-and-register_globals/#findComment-92836 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 Link to comment https://forums.phpfreaks.com/topic/20946-godaddy-web-hosting-and-register_globals/#findComment-92837 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? Link to comment https://forums.phpfreaks.com/topic/20946-godaddy-web-hosting-and-register_globals/#findComment-92845 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.