Is there an easy way to get the current URL in PHP like "document.location.href" in Javascript?
I plan to use parse_url() to get user and password from an url like: http://user:password@www.site.com
Grateful for any help at all!
http://php.net/reserved.variables
print('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
Thank you Skaara.
Almost, but not quite. I also need to get the user and the password from the href (http://user:password@www.site.com)