扫码关注官方订阅号
$_SERVER['PHP_SELF']; 后面这个PHP_SELF,不懂什么意思
自律出众,不自律出局
$_SERVER['PHP_SELF'] 当前执行脚本的文件名,与 document root 有关。
例如,在地址为 http://example.com/test.php/foo.bar 的脚本中使用 $_SERVER['PHP_SELF'] 将得到 /test.php/foo.bar。
https://www.runoob.com/php/php-superglobals.html
好的 谢谢
$_SERVER['PHP_SELF']
当前执行脚本的文件名,与 document root 有关。
这是固定参数,记住就行了
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
$_SERVER['PHP_SELF'] 当前执行脚本的文件名,与 document root 有关。
例如,在地址为 http://example.com/test.php/foo.bar 的脚本中使用 $_SERVER['PHP_SELF'] 将得到 /test.php/foo.bar。
https://www.runoob.com/php/php-superglobals.html
好的 谢谢
$_SERVER['PHP_SELF']
当前执行脚本的文件名,与 document root 有关。
例如,在地址为 http://example.com/test.php/foo.bar 的脚本中使用 $_SERVER['PHP_SELF'] 将得到 /test.php/foo.bar。
https://www.runoob.com/php/php-superglobals.html
这是固定参数,记住就行了