-1
我需要摘录我在哪里的当前页面的网址。例如:如何使用php获取基址url
网址:http://localhost/web/view/tutorialesVideos.php?idvideo=34&tip=1
路径:http://localhost/web/view/
然后进行路径的echo
。
我知道这是可能的$_SERVER['']
在PHP中,但我找不到代码。
问候。
我需要摘录我在哪里的当前页面的网址。例如:如何使用php获取基址url
网址:http://localhost/web/view/tutorialesVideos.php?idvideo=34&tip=1
路径:http://localhost/web/view/
然后进行路径的echo
。
我知道这是可能的$_SERVER['']
在PHP中,但我找不到代码。
问候。
的print_r($ _ SERVER);模具();并看看你得到了什么。 –