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.

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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.