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 even better is if the script could read the current page URL, parse out the base name, compare it to a mysql table and automatically return another field domain1 | cars domain2 | trucks domain3 | motorcycles Would this be possible? I would appreciate any insight.