I want to find the page name ie thispage.php
$URL = $_SERVER[PHP_SELF]; echo $URL;
this code will show news/admin/thispage.php how can i get it to just show the thispage.php??
basename($url);
so this should work then?
$page = basename($url); if ($page == 'index.php') {
because it doesn't
hmm... I spoke too soon...
Basename will get the name from a path...so I guess you could do: $page = [man]basename/man;