使用PHP获取地址栏内容 [英] Getting address bar contents with PHP
本文介绍了使用PHP获取地址栏内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用PHP获取浏览器地址栏的内容 - 假设它可以使用
?
在javascript中完成:unescape (window.location.pathname),但是
有一个等价的PHP吗?
谢谢
Hamilton <服务器[''PHP_SELF'']是否可以完成工作?
<
解决方案
blockquote> Spidah写道:如何使用PHP获取浏览器地址栏的内容 - 假设它可以
在javascript中它完成了:unescape(window.location.pathname),但是
有一个PHP等价吗?
对于这个网址 - > http://www.example。 com / path / to / location.php?x = one& y = 2
#v +
<?php
fulluri =''http://''。
How do I get the contents of the browser address bar with PHP - assuming it
is possible?
In javascript it is done with: unescape(window.location.pathname), but is
there a php equivalent?
Thanks
Hamilton
解决方案
would SERVER[''PHP_SELF''] do the job?
Spidah wrote:How do I get the contents of the browser address bar with PHP - assuming it
is possible?
In javascript it is done with: unescape(window.location.pathname), but is
there a php equivalent?
For this url -> http://www.example.com/path/to/location.php?x=one&y=two
#v+
<?php
fulluri = ''http://'' .
这篇关于使用PHP获取地址栏内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文