Re: $_SERVER['HTTP_HOST'] without the 'www.'
| From: | Nick Wilson | Date: | Tue, 31 Aug 2004 15:30:19 +0000 |
| Subject: | Re: $_SERVER['HTTP_HOST'] without the 'www.' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195293@lists.php.net to get a copy of this message | ||
* and then Shaun declared....
> 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.'.
parse_url() ;-)
--
Nick W