Does your Apache provide $_SERVER['SERVER_NAME']? For me it outputs the domain like "google.com".
Regards, Torsten Roehr
Server name from Apache is not guaranteed to be sans 'www'. Server name will return whatever the web server is configured as in the httpd.conf
-- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED]
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php