What I need to do is have a little php script "read" the current URL and parse out the base domain name (without tld) so I can use this in a page or article as a variable. For example, if the url is www.domain1.US/articles/vehicles/trucks.htm the script will find "domain1."
What would be...