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.
"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
2 matches
Mail list logo