0

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
asked Nov 6, 2015 at 14:19
2
  • I wanted to say without to use "m=" Commented Nov 6, 2015 at 14:22
  • does that mean you would still like to edit your question? Commented Nov 6, 2015 at 14:57

1 Answer 1

3

You should be able to use $_SERVER['QUERY_STRING'] to get the whole string.

answered Nov 6, 2015 at 14:24
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.