PHP server name from the command line
Snippet
kitt decided around 05:49 on 12 January 2011 to publish this:
Can't use $_SERVER['SERVER_NAME'] in command line scripts for the host name. Use php_uname()
echo php_uname("n");
Source:
Add new comment