jblayney
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.