【发布时间】:2014-02-12 16:40:25
【问题描述】:
我需要提取我所在的当前页面的 url。例如:
网址: http://localhost/web/view/tutorialesVideos.php?idvideo=34&tip=1
路径: http://localhost/web/view/
然后创建路径的echo。
我知道在 php 中使用 $_SERVER[''] 是可能的,但我找不到代码。
您好。
【问题讨论】:
-
print_r($_SERVER);die();看看你得到了什么。