I have a web directory to which several parked domain names are pointing. What I would like to do is know which domain name the visitor requested via browser address bar or link.
I will have a single handler index.php that will determine the requested domain name and display content accordingly.
Something like: Hello, and welcome to example.com
Thanks
You would access the superglobal
$_SERVERand its keyHTTP_HOST: