Link to home
Start Free TrialLog in
Avatar of jblayney
jblayneyFlag for Canada

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of ldbkutty
ldbkutty
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial