How do I return the entire url of a page including get.
$_SERVER[‘HTTP_REFERER’] and php_self doesn’t do it.
they return http://www.domain.com/example
instead of http://www.domain.com/example?user=2
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try:
If you don’t wish to return the domain, but just the internal url and get variables you can omit $_SERVER[‘HTTP_HOST’].