using php_self returns file name and path, i just need the name

Hello.

i want simply the page name, but PHP_SELF is also displaying the folder.

<?
$page = $_SERVER["PHP_SELF"];
?>

<? echo $page; ?>      

/english/email.php is what it returns
 i need just
/email.php
 or email.php
LVL 1
jblayneyAsked:
Who is Participating?
 
ldbkuttyCommented:
<?php
 $page = basename($_SERVER["PHP_SELF"]);
?>

http://www.php.net/basename
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.