示例URL:
http://feizhaojun.com/sample/get-script-name/test-name.php?test-key=test-value
输出结果:
$_SERVER['ORIG_PATH_INFO']:
$_SERVER['URL']:
$_SERVER['SCRIPT_NAME']:/sample/get-script-name/test-name.php
$_SERVER['SCRIPT_FILENAME']:/home/wwwroot/feizhaojun.com/sample/get-script-name/test-name.php
$_SERVER['REQUEST_URI']:/sample/get-script-name/test-name.php?test-key=test-value
$_SERVER['PATH_TRANSLATED']:
$_SERVER['PHP_SELF'](PATH_TRANSLATED):/sample/get-script-name/test-name.php
您的赞助将会支持作者创作及本站运维
发表评论