[SOLVED] $_SERVER['PATH_INFO']

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

[SOLVED] $_SERVER['PATH_INFO']

Post by vigge89 »

My current site system uses $_SERVER['PATH_INFO'] to populate variables with values, and it works perfect on my local server wth PHP 5.0.0. But now i uploaded the site onto my host, it doesn't work. The host runs 4.3.8. The variable doesn't get filled, its just empty. Isn't the variable path_info available in PHP v 4.3.8? Or does it only get set in windows/etc.? Could it be any setting in php.ini?

here's the phpinfo() for my host.

Thanks in advance
Last edited by vigge89 on Mon Sep 27, 2004 1:51 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

http://www.php.net/reserved.variables

read under 'PATH_TRANSLATED'
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

thanks, ill ask the host what they've set it to ;)
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

i solved it with adding "AcceptPathInfo On" in the .htaccess file under the httpd-root, thanks :)
Post Reply