PHP server name from the command line
Snippet
Written with a loving hand by kitt some time around 05:49 on 12 January 2011
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