TO get current page name which are running in browser just use below one line Php code.
<?php
function curPageName() {
return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
}
echo "The current page name is ".curPageName(); ?>
echo "The current page name is ".curPageName(); ?>
0 Comments