PHP server name from the command line
Snippet
Posted by kitt at 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