I am wondering how I can get the URL (visible in the panel). I tried to do this, and many answers write this:
$url= "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
But it will get the path to the file you are in. I would just like to get a visible url like this:
www.something.com/index.php?page=teams
And then only get the url you can see, not the url included. When I do this, something like:
www.something.com/search.php
because im prints the url inside the included search.php file.
I hope you understand my question, although it is poorly written, it is very difficult for me to explain my problem.
source
share