PHP server name from the command line
Snippet
Instead of being asleep at 05:49 on 12 January 2011, kitt created 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