';
//self name without file extension
echo basename(__FILE__, '.php') . '
';
//self full url with file extension
echo __FILE__ . '
';
//parent file parent folder name
echo basename($_SERVER["REQUEST_URI"]) . '
';
//parent file parent folder name with //s
echo $_SERVER["REQUEST_URI"] . '
';
// parent file name without file extension
echo basename($_SERVER['PHP_SELF'], ".php") . '
';
// parent file name with file extension
echo basename($_SERVER['PHP_SELF']) . '
';
// parent file relative url with file etension
echo $_SERVER['PHP_SELF'] . '
';
// parent file name without file extension
echo basename($_SERVER["SCRIPT_FILENAME"], '.php') . '
';
// parent file name with file extension
echo basename($_SERVER["SCRIPT_FILENAME"]) . '
';
// parent file full url with file extension
echo $_SERVER["SCRIPT_FILENAME"] . '
';
//self name without file extension
echo pathinfo(__FILE__, PATHINFO_FILENAME) . '
';
//self file extension
echo pathinfo(__FILE__, PATHINFO_EXTENSION) . '
';
// parent file name with file extension
echo basename($_SERVER['SCRIPT_NAME']);
?>