Re: How to get a page's domain
| From: | Matt McClanahan | Date: | Fri, 09 Jun 2000 18:44:10 +0000 |
| Subject: | Re: How to get a page's domain | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1410@lists.php.net to get a copy of this message | ||
On Fri, 9 Jun 2000, Boget, Chris wrote:
> If the address for a particular page is
>
> www.mydomain.com/thisdir/thisfile.php3
>
> and $PHP_SELF contains
>
> /thisdir/thisfile.php3
>
> how do you get
>
> www.mydomain.com
A quick check of phpinfo() reveals that $HTTP_HOST is probably what you're
after.
Matt