| Shared Hosting Questions about your shared hosting account. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
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 |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Fresh Surpasser
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.
|
|
|
|
|
|
#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.
|
|
|
|
|
|
#5 (permalink) |
|
Registered User
Fresh Surpasser
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
![]() |
|
|
|
|
|
#6 (permalink) |
|
after g, before i
Resident.
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. |
|
|
|
|
|
#7 (permalink) |
|
Registered User
Fresh Surpasser
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.
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|