[英]Get URL string parameters with PHP
I have in the adressbar the url phpexample.com/go.php?https://www.phpezzz.com/community/article1.html
. 我在地址栏中有网址
phpexample.com/go.php?https://www.phpezzz.com/community/article1.html
。 How do I extract from go.php file the www.phpezzz.com/community/article1.html
part? 如何从go.php文件中提取
www.phpezzz.com/community/article1.html
部分? This is, without assigning the url to a variable in query string. 这是在不将url分配给查询字符串中的变量的情况下。
Currently I use go.php?m=https://www.phpezzz.com/community/article1.html
and extract the link with $m = $_GET['m'];
目前,我使用
go.php?m=https://www.phpezzz.com/community/article1.html
并使用$m = $_GET['m'];
提取链接$m = $_GET['m'];
, but I don't want to use m=
in the URL. ,但我不想在URL中使用
m=
。
您应该可以使用$ _SERVER ['QUERY_STRING']来获取整个字符串。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.