Saturday, 31 August 2013

Get the last part of the URI

Get the last part of the URI

if i output my URI i also get the folder in which it is located at.
echo $_SERVER['REQUEST_URI']; //outputs
/abcgetoutofjail/admin.php?make_account
im on localhost right now, and the website is under folder in htdocs
abcgetoutofjail
i need only admin.php?make_account
i need the last part of the url in any way
how can i achieve that with either another way of getting uri or using a
string function to cut SERVER URI
function DescriptionAndTitle($uri)
{
echo $uri;
}

No comments:

Post a Comment