php get file name
<?php $_SERVER["REQUEST_URI"] = '/category.php'; basename($_SERVER["REQUEST_URI"]); //get category.php basename($_SERVER["REQUEST_URI"], '.php'); //get category