Re: FQDN of the server thru CLI
| From: | Stut | Date: | Tue, 04 Apr 2006 13:09:45 +0000 |
| Subject: | Re: FQDN of the server thru CLI | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233196@lists.php.net to get a copy of this message | ||
Venkat Venkataraju wrote:
i do not want to hardcode the hostname anywhere as these script will be copied onto many servers. is there a way i can find the fully qualified domain name thru PHP?If the system has been configured correctly the following should work... $hostname = trim(
hostname); // note the backticks
-Stut