echo ‘网站根目录地址:‘.__ROOT__.‘<br/>‘;
echo ‘当前项目(入口文件)地址:‘.__APP__.‘<br/>‘;
echo ‘当前分组地址:‘.__GROUP__.‘<br/>‘;
echo ‘当前模块地址:‘.__URL__.‘<br/>‘;
echo ‘当前操作地址:‘.__ACTION__.‘<br/>‘;
echo ‘当前 URL 地址:‘.__SELF__.‘<br/>‘;
echo ‘当前操作名称:‘.ACTION_NAME.‘<br/>‘;
echo ‘当前项目目录:‘.APP_PATH.‘<br/>‘;
echo ‘当前项目名称:‘.APP_NAME.‘<br/>‘;
圈起的三个无法获取;
echo $_SERVER["REQUEST_SCHEME"].‘://‘.$_SERVER["SERVER_NAME"].‘:‘.$_SERVER[‘SERVER_PORT‘].$_SERVER["REQUEST_URI"];
结果(模板页):http://localhost:80/ackonphp/index/loginOut.html
结果(操作名全称):http://localhost:80/ackonphp/home/index/testconn
echo $_SERVER[‘HTTP_HOST‘].‘<br/>‘;
echo $_SERVER[‘SCRIPT_NAME‘].‘<br/>‘;
echo $_SERVER[‘PATH_INFO‘].‘<br/>‘;
echo $_SERVER[‘QUERY_STRING‘].‘<br/>‘;
echo $_SERVER[‘PHP_SELF‘].‘<br/>‘;
$_SERVER[‘QUERY_STRING‘]无效;
时间: 2024-10-10 13:53:28