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.
Luiggi Mendoza
85.9k16 gold badges159 silver badges353 bronze badges
-
I wanted to say without to use "m="Mr Brown– Mr Brown2015年11月06日 14:22:53 +00:00Commented Nov 6, 2015 at 14:22
-
does that mean you would still like to edit your question?Bö macht Blau– Bö macht Blau2015年11月06日 14:57:43 +00:00Commented Nov 6, 2015 at 14:57
1 Answer 1
You should be able to use $_SERVER['QUERY_STRING'] to get the whole string.
answered Nov 6, 2015 at 14:24
lang-php