Hi. How do i get the current domain name from the URL? I don't want $_SERVER['SERVER_NAME'] because i want this to work on multiple domain names. This is stupid because i've done it before and i can't remember it.
Thanks, John
HTTP_HOST maybe?
Maybe you can explain the problem better?
yeah HTTP_HOST will work (just so you know it's the Host: header the client sends to your server, so that's the domain your client is seeing)
It's HTTP_HOST.
Thanks a lot