If you ever need to get the name of the page you are on, and you don’t need the path, this will do it for you:
ltrim((str_replace(dirname($_SERVER['PHP_SELF']),"",$_SERVER['PHP_SELF'])),"/\\");
Posted by wmyers in hints
Pages
Categories
Archives
Links
If you ever need to get the name of the page you are on, and you don’t need the path, this will do it for you:
ltrim((str_replace(dirname($_SERVER['PHP_SELF']),"",$_SERVER['PHP_SELF'])),"/\\");
Posted by wmyers in hints
You must be logged in to post a comment.