How to get the page name of the current URL?
Posted by
om 4 March, 2009
Using this script you can get PHP current page from a url.
function CPageName() {
return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
}
echo "The current page name is ".CPageName();
Categories :
AJAX

Comments
No comments yet.