...

View Full Version : Need an alternative to ORIG_PATH_INFO or PATH_INFO



maghiel
03-15-2007, 12:12 PM
I'm working on a site that uses ORIG_PATH_INFO for a lot of
important reasons.
But now the site move to a new server, and that doens't give me
any ORIG_PATH_INFO, PATH_INFO or whatever.

Does anyone know an alternative to that variable?
PHP_SELF or SCRIPT_NAME does not work properly.

Thnx in advance!

maghiel
03-15-2007, 02:11 PM
never mind, fixed it :)



$requestPath = $_SERVER['REQUEST_URI']; // Get REQUEST_URI
$requestPath = substr($requestPath, strpos($requestPath, '/', 1)); // Strip of the base (portal name)
$_SERVER['ORIG_PATH_INFO'] = $requestPath; // Assign to ORIG_PATH_INFO



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum