<?php
$currentFile = $_SERVER["PHP_SELF"];
$parts = Explode('/', $currentFile);
echo $parts[count($parts) - 1];
?>
or
<?php
basename($_SERVER[’PHP_SELF’]);
?>
Get current filename
Leave a Reply
You must be logged in to post a comment.