Page 1 of 1

[SOLVED] $_SERVER['PATH_INFO']

Posted: Mon Sep 27, 2004 1:19 pm
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

Posted: Mon Sep 27, 2004 1:24 pm
by feyd
http://www.php.net/reserved.variables

read under 'PATH_TRANSLATED'

Posted: Mon Sep 27, 2004 1:31 pm
by vigge89
thanks, ill ask the host what they've set it to ;)

Posted: Mon Sep 27, 2004 1:51 pm
by vigge89
i solved it with adding "AcceptPathInfo On" in the .htaccess file under the httpd-root, thanks :)