The $_SERVER array is what you want. For example, $_SERVER['HTTP_HOST'] will contain "www.ashley.oviatt.whatever.com" More info here: http://us2.php.net/manual/en/reserved.variables.php#reserved.variables.serve r Jon