Jump to content

Setting Register Globals To On With GoDaddy Hosting


mox22

Recommended Posts

I am a newbie. I am trying to turn my register global setting to on. I created a php.ini file with the code "register_globals on". I uploaded the file and it did not change anything. I also created a .htaccess file and tried that way but that didn't work either. Any suggestions would be greatly appreciated. Also, here is the php info url if that can help solve the problem: http://www.onesmartdollar.com/phpinfo.php

 

Thanks in advance.

-Marcus

Link to comment
Share on other sites

Don't turn register_globals on. Register_globals were turned off six years ago because of the huge security hole they caused (a hacker can set session variables in your script simply by putting GET parameters on the end of the URL when he requests pages on your site.) No code written after 2002 should have relied on register_globals. Register_globals have been completely removed in upcoming php6.

 

Spend your time fixing your script so that it references the correct program/post/get/cookie/session variables instead of expecting register_globals to magically populate them from each other.

Link to comment
Share on other sites

In addition to fixing program/post/get/cookie/session variables, any use of session_register(), session_is_registered() and session_unregister() needs to be converted to use $_SESSION, as those three functions don't work unless register globals are on and those three functions are removed in php6.

 

Link to comment
Share on other sites

So How can I restart the webserver?

(simple answer)

You can't.

(bit more complex)

You can't, only GoDaddy (or whome ever you host is) can. They won't though because while it is restarting all of the sites on it will be down.... that would be costly. Also, likely, your host has the .ini setting COMPLETELY BLOCKED BECAUSE IT IS RETARDED TO USE GLOBALS.

 

Link to comment
Share on other sites

Now I'm not sure what to do. Why would the use globals if it is a security risk.? The URL is http://www.onesmartdollar.com it is a pyramid scheme type of thing. I asked godaddy how to turn globals on and they seaid to use a php.ini file, which I did but it does not work. I just want to turn it on the the site is functional, i'm not sure what security risks I have to be worried about.

Link to comment
Share on other sites

Don't turn register_globals on. Register_globals were turned off six years ago because of the huge security hole they caused (a hacker can set session variables in your script simply by putting GET parameters on the end of the URL when he requests pages on your site.)

 

That is the security issue

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.