Re: Re: $_SERVER['HTTP_HOST'] without the 'www.'

From: Date: Tue, 31 Aug 2004 16:32:12 +0000
Subject: Re: Re: $_SERVER['HTTP_HOST'] without the 'www.'
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-195302@lists.php.net to get a copy of this message
Torsten Roehr wrote:
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 john@kegworks.com

« previous php.general (#195302) next »