获取PHP页面的当前文件名(包括后缀名)

// $curPhp = substr($_SERVER['PHP_SELF'],strripos($_SERVER['PHP_SELF'],'/')+1);
// print_r($_SERVER['PHP_SELF']); //strripos($_SERVER['PHP_SELF'],'/')
// echo '<br />';
// print_r(strripos($_SERVER['PHP_SELF'],'/')+1);
// echo '<br />';
// print_r($curPhp);
// die;
一切所谓的努力在成功之前都是一钱不值。
原文地址:https://www.cnblogs.com/kernel123/p/9377639.html