简体   繁体   中英

Get URL string parameters with PHP

I have in the adressbar the url 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? This is, without assigning the url to a variable in query string.

Currently I use go.php?m=https://www.phpezzz.com/community/article1.html and extract the link with $m = $_GET['m']; , but I don't want to use m= in the URL.

您应该可以使用$ _SERVER ['QUERY_STRING']来获取整个字符串。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM