PriymakVl
2/6/2020 - 8:43 AM

php get file name

php get file name

<?php 

$_SERVER["REQUEST_URI"] = '/category.php'; 

basename($_SERVER["REQUEST_URI"]); //get category.php

basename($_SERVER["REQUEST_URI"], '.php'); //get category