I need to grab the host name from the URL. I've seen similar functions in other scripting languages, ie
self_url(), but haven't found one in PHP. I'm doing this so that I can change which included header/footer files for different sites that use the same basic pages.
For example, in a URL
http://cdc.aibonline.org/php/testpage.php I need to be able to see that it is
cdc.aibonline.org vs
www.aibonline.org.
Any help? Thanks in advance