I can't find a way to detect the name of the server running a PHP script from the command line. There are numerous ways to do this for PHP accessed via HTTP. But there does not appear to be a way to do this for CLI.
For example : $_SERVER['SERVER_NAME'] is not available from the command line.
Does anyone have suggestions?
Thanks, Justin Noel AppBeacon.com