Method to print current page name in PHP Anu 12 years ago This is the method to print current page name in PHP <?php echo basename($_SERVER['PHP_SELF']); ?>