如何返回当前页面的路径,包括之后的内容?
所以例如我是这个链接
localhost/site1/index.php?view=10&user=5
我想返回这个值"index.php?view=10&user=5"
我怎样才能使用 PHP 做到这一点?
我想$_SERVER['SCRIPT_NAME']
这样做但SCRIPT_NAME
正在返回 index.php
如何返回当前页面的路径,包括之后的内容?
所以例如我是这个链接
localhost/site1/index.php?view=10&user=5
我想返回这个值"index.php?view=10&user=5"
我怎样才能使用 PHP 做到这一点?
我想$_SERVER['SCRIPT_NAME']
这样做但SCRIPT_NAME
正在返回 index.php