hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : $_GET, $_POST and $_REQUEST not working....
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

$_GET, $_POST and $_REQUEST not working....

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 11-03-2008, 02:50 AM
Jaseeey Jaseeey is offline
Junior Guru
 
Join Date: Dec 2007
Location: Adelaide, AU, Earth
Posts: 204
$_GET, $_POST and $_REQUEST not working....

Hi guys,
Did a rebuild of Apache through WHM last night, and now for some reason, the $_GET, $_POST and $_REQUEST globals aren't working.
I am trying to capture a variable from the address bar using $_GET. I know my code works because it works on my server, but not another one.
Is there something in Apache or PHP that controls this? Why would a rebuild have messed it up?
Cheers.

Reply With Quote


Sponsored Links
  #2  
Old 11-03-2008, 03:04 AM
Devil Inside Devil Inside is offline
Web Hosting Evangelist
 
Join Date: Nov 2003
Posts: 516
Perhaps your php.ini was reset to a default in the rebuild. Does the script output an error_log file you can check for a possible cause?
Another option, log into cPanel for the account, and check the error log there. If you need help after that, post the error log.
I don't know much about globals, but if their globals, I know Registered_Globals is OFF by default in /etc/php.ini
Just might need to turn that back on.

Reply With Quote
  #3  
Old 11-03-2008, 03:08 AM
Jaseeey Jaseeey is offline
Junior Guru
 
Join Date: Dec 2007
Location: Adelaide, AU, Earth
Posts: 204
Quote:



Originally Posted by Devil Inside


Perhaps your php.ini was reset to a default in the rebuild. Does the script output an error_log file you can check for a possible cause?
Another option, log into cPanel for the account, and check the error log there. If you need help after that, post the error log.
I don't know much about globals, but if their globals, I know Registered_Globals is OFF by default in /etc/php.ini
Just might need to turn that back on.


I've looked everywhere. The only error I get is the variable is undefined. Register globals should remain off. $_GET, $_POST and $_REQUEST will still work without it. Thanks for your input though.
I am trying to compare configurations between servers, and for some reason I'm thinking it's more of an Apache issue. I'm trying another rebuild, but I doubt that will fix it... but it may

Reply With Quote
Sponsored Links
  #4  
Old 11-03-2008, 03:24 AM
Jaseeey Jaseeey is offline
Junior Guru
 
Join Date: Dec 2007
Location: Adelaide, AU, Earth
Posts: 204
Well it seems a rebuild fixed it
Not sure why the rebuild broke it in the first place though.
Thanks.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Heroku Describes Ruby on Rails Application Performance Issues Web Hosting News 2013-02-20 13:00:51
Slow Read DOS Attack Created by Software Engineer Shows HTTP Server Vulnerability Web Hosting News 2012-01-06 20:55:18
Data Center Outage Hits 400,000 Clients of Email Marketing Tool MailChimp Web Hosting News 2012-01-04 22:04:19
Craigslist Silent as its Canadian Sites Inaccessible Web Hosting News 2011-11-29 19:40:41
Sony Temporarily Locks Accounts After Hack Attempt Detected Web Hosting News 2011-10-12 16:21:46


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?