Copy code The code is as follows:
// Description: Get the _SERVER['REQUEST_URI'] value Universal solution
function request_uri()
{
if (isset($_SERVER['REQUEST_URI']))
{
$uri = $_SERVER['REQUEST_URI'];
}
else
{
if (isset($_SERVER['argv']))
{
$uri = $_SERVER['PHP_SELF'] .'?'. $_SERVER ['argv'][0];
}
else
{
$uri = $_SERVER['PHP_SELF'] .'?'. $_SERVER['QUERY_STRING'];
}
}
return $uri;
}
?>
http://www.bkjia.com/PHPjc/322149.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322149.htmlTechArticleCopy the code as follows: ?php // Description: A general solution to get the _SERVER['REQUEST_URI'] value function request_uri() { if (isset($_SERVER['REQUEST_URI'])) { $uri = $_SERVER['R...