Anu December 22, 2014 Others Method to print current page name in PHP This is the method to print current page name in PHP <?php echo basename($_SERVER['PHP_SELF']); ?>