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

2004-08-31 Thread John Nichel
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.

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

2004-08-31 Thread Torsten Roehr
"Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > How can I get the URL of the page I am on without the 'www.' i.e. just > mydomain.com? I need to enurse this is correct in case the user types in the > domain without using the 'www.'. > > I have looked at using substr bu