With php, I want to return the current url of the page I am currently on.
for example, if this script is run on http://www.google.com, I want to echo out 'google' sans http://
OR
if this script is run on http://173.244.195.179, I want to echo out '173.244.195.179' sans http://
I've looked at $_SERVER
but haven't been able to get it to work. Suggestions?