advanced code snippet search
eldanieldeepak on 09/25/11
php page name current
2 people have marked this snippet as a favorite
<?php $currentFile = $_SERVER["PHP_SELF"]; $parts = Explode('/', $currentFile); echo $parts[count($parts) - 1]; ?>
Report this snippet
You need to login to post a comment.