get base path in php code example
Example: php basename from path
<?php
$path = "/testweb/home.php";
$filename = basename($path);
$filename_without_php_extension = basename($path,".php");
<?php
$path = "/testweb/home.php";
$filename = basename($path);
$filename_without_php_extension = basename($path,".php");