icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Shared Hosting » Register globals Problem!

Shared Hosting Questions about your shared hosting account.

Reply
 
LinkBack Thread Tools Search this Thread
Old November 8th, 2007, 11:28 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
SharonQ27's Avatar
 
Joined in Oct 2007
17 posts
Gave thanks: 3
Thanked 0 times
Register globals Problem!

Can somebody tell me why register globals keeps resetting back to off? Every time it goes off it messes my site up. Could somebody possibly turn it back on cause my site is a downloads based website and right now all the downloads are currently offline as register globals has turned it self off.

My domain is simsnoutique.net

Thanks from Sharon
SharonQ27 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 8th, 2007, 11:54 AM   #2 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,079 posts
Gave thanks: 48
Thanked 131 times
register_globals being on is a potential security risk... It's advised you update your script to not require it.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 8th, 2007, 12:06 PM   #3 (permalink)
Registered User
Fresh Surpasser
 
SharonQ27's Avatar
 
Joined in Oct 2007
17 posts
Gave thanks: 3
Thanked 0 times
Um.. I don't actually know how to update my script for this problem. I used to have a friend that helped me with this php stuff but now I don't. It's only affecting the login script and the downloads script and I don't really know why.
SharonQ27 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 8th, 2007, 12:09 PM   #4 (permalink)
Registered User
Seasoned Poster
 
Joined in May 2007
Hosted on SH103
30 posts
Gave thanks: 1
Thanked 2 times
Maybe if you ask for help in the PHP forum, somebody could help you change it to remove the need for register globals. The people here are pretty helpful, after all.
__________________
SH103
http://www.united-fleet.org
Suikolove is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 8th, 2007, 12:17 PM   #5 (permalink)
Registered User
Fresh Surpasser
 
SharonQ27's Avatar
 
Joined in Oct 2007
17 posts
Gave thanks: 3
Thanked 0 times
Ok. I'll ask. I have to admit that every time I've had a problem it's always been fixed pretty quick. I'm not to sure anybody will want to take on the task of messing with my amateurish php script though
SharonQ27 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 8th, 2007, 1:33 PM   #6 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,079 posts
Gave thanks: 48
Thanked 131 times
The solution is pretty easy...

Anywhere you're expecting a query variable, use $_GET['variable'].
Anywhere you're expecting a form variable, use $_POST['variable'].
Anywhere you might be getting either, use $_REQUEST['variable'].

This also affects cookie and session variables, though oddly enough people seem to learn to use $_COOKIE and $_SESSION instead of just $variable.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 8th, 2007, 1:48 PM   #7 (permalink)
Registered User
Fresh Surpasser
 
SharonQ27's Avatar
 
Joined in Oct 2007
17 posts
Gave thanks: 3
Thanked 0 times
That totally just went over my head. I don't have a clue where in my script I replace my variable names for one these $_GET['variable'] $_POST['variable'] $_REQUEST['variable']. I was just reading up about this on php.net but that site isn't really for the php dummy like me. I could really use somebody to look at my script and show me the way. Thanks for replying though.
SharonQ27 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On