tags:

views:

71

answers:

1

I had a working system with Apache 2.0 and PHP 5.2.6

I have had to upgrade Apache and PHP, so I now have Apache 2.2 and PHP 5.2.12 and for some reason $_SERVER['REQUEST_URI'] is now missing from the super global in PHP.

This is my test system on my dev PC (not a live server) and there are 4 or vhosts on it.

What config should I check in Apache and PHP to make sure this comes back again, as I need it to work?

+1  A: 

Do the other $_SERVER values show up? If not, check the value of "variables_order" in php.ini. If it doesn't contain "S" then $_SERVER won't be filled.

GZipp
Yep, most of them are present. I'm not 100% sure which ones are missing, but this is the only one that was important to my codebase.
rikh
How about `echo getenv('REQUEST_URI');` Does it show up there?
GZipp