This information is quite easy to find in the PHP docs. You are looking for $_SERVER['SERVER_NAME'], which is a predefined variable.
---Matt -----Original Message----- From: Michael P. Carel [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 8:24 PM To: [EMAIL PROTECTED] Subject: [PHP] server hostname hi to all; what function should i used to know the hostname of the server im using where php and apache reside? mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php