How can I return the path of the current page including whats after ?
So for example I am this link
localhost/site1/index.php?view=10&user=5
I want to return this value "index.php?view=10&user=5"
How can I do that using PHP?
I thought $_SERVER['SCRIPT_NAME']
do this but SCRIPT_NAME
is returing index.php