获取tp3.2 public所在的路径

//返回服务器真实路径
$Absolute_Path=$_SERVER['SCRIPT_FILENAME'];
//截取index.php
$Absolute_Path=substr($Absolute_Path,0,-9).'/Public';

 

posted @ 2018-04-10 16:42  phpwyl  阅读(2963)  评论(0编辑  收藏  举报