deadonarrival Posted July 15, 2007 Share Posted July 15, 2007 If I use $_SERVER['PHP_SELF'] I get /pages/jonathanstory/index.php But I only want the index.php portion of the page - is there any simple way to do this? Quote Link to comment Share on other sites More sharing options...
infid3l Posted July 15, 2007 Share Posted July 15, 2007 There may/must be, but you could do this: <?php $filename = explode("/", $_SERVER['PHP_SELF']); $filename = $filename[count($filename)-1]; ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.