you can use set variable names for page. second good way is use this function for print page name $_SERVER[“PHP_SELF”]
or if you want only page name than use this script
This is some more helpfull code…
$url = $_SERVER[‘REQUEST_URI’];
$array = explode(“/”,$url);
echo $array; ///which folder would you want to access ?
echo “size of array = “.sizeof($array).”<br>”;
URL unicode is another method for Creating Pretty or Clean Url and creating breadcrumbs