how do i get the domain that the script is called from?
| From: | Police Trainee | Date: | Sat, 20 Jul 2002 19:56:20 +0000 |
| Subject: | how do i get the domain that the script is called from? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108674@lists.php.net to get a copy of this message | ||
Script ABC.php is located at
http://www.xyz.com/ABC.php
echo $SCRIPT_NAME would return ABC.php
echo $SOMETHING_HERE should return xyz.com or
www.xyz.com
--> What should be in the $SOMETHING_HERE spot?
I need this to also work with something such as
http://12.24.48.96/ABC.php
where echo $SOMETHING_HERE would return 12.24.48.96
thanks
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com