how can you get the domain of any url?
do you mean the full URL instead of just "/whatever.php"? you want "http://whatever.com/whatever.php"?
If you do, I don't know how.. but I am very interested to find out how to do it
[man]parse_url[/man]?