Re: [PHP3] How to get a page's domain
| From: | Zak Greant | Date: | Fri, 09 Jun 2000 18:40:38 +0000 |
| Subject: | Re: [PHP3] How to get a page's domain | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1409@lists.php.net to get a copy of this message | ||
Hi Chris,
Most variables like this can be found in the data output by phpinfo().
The var that you are looking for is $HTTP_HOST
Ciao,
Zak
At 01:32 PM 6/9/00 -0500, 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 ? Chris -- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe@lists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe@lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin@lists.php.net