My Community Dashboard

  • Hi Nick,

    Well, in my internet research on this, I kept getting told that it is nearly IMPOSSIBLE to do this for each server ip address it could be pointing at more than one domain name; retrieving domain name for a server from its ip address. I understood the reason why. However, there is a PHP environmental element that you can request from the visitor's server that gives you the name (Domain Name) of the server if possible; $_SERVER["SERVER_NAME"].

    To my surprise, it returned EXACTLY what I was looking for a domain for the server like www.example.com. :)

    Just putting this out here just in case someone is looking for something similar solution or an answer.

    Thank you for the reply Nick.