Simple PHP implementation for retrieving the fully qualified hostname.