Return to Snippet

Revision: 51460
at September 25, 2011 16:57 by eldanieldeepak


Initial Code
<?php 
 $currentFile = $_SERVER["PHP_SELF"];
 $parts = Explode('/', $currentFile);
 echo $parts[count($parts) - 1]; 
?>

Initial URL
http://www.scriptygoddess.com/archives/2007/07/13/use-php-to-get-the-current-pagefile-name/

Initial Description

                                

Initial Title
Get current page name in php

Initial Tags
php, page

Initial Language
PHP