Jump to content


Photo

godaddy web hosting and register_globals


  • Please log in to reply
4 replies to this topic

#1 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 16 September 2006 - 03:15 AM

anyone know how to turn OFF register_globals on godaddy webhosting? putting the php_flag register_globals off line in .htaccess has absolutely no affect.

#2 genericnumber1

genericnumber1
  • Members
  • PipPipPip
  • Advanced Member
  • 1,858 posts

Posted 16 September 2006 - 03:27 AM

php_value register_globals off

I think that's it for a .htaccess...

I dont know how to edit your php.ini on godaddy though, sorry.

#3 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 16 September 2006 - 03:38 AM

Godaddy FAQ - http://help.godaddy....85&topic_id=77
Legend has it that reading the manual never killed anyone.
My site

#4 trillion

trillion
  • Members
  • PipPipPip
  • Advanced Member
  • 41 posts

Posted 16 September 2006 - 03:39 AM

This article show how to emulate register globals on an off

http://usphp.com/man...registerglobals

#5 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 16 September 2006 - 03:51 AM

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...
do {
	if(key($_GET)!="") eval("unset($".key($_GET).");");
}while(each($_GET));

presto -- conflicting global variable eliminated. Any idea if this could cause any unforeseen consequences?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users