[dev] conf['server']['name']

Jan Schneider jan at horde.org
Thu Jul 8 11:21:35 PDT 2004


Zitat von Marc Jauvin <marc at register4less.com>:

> How can we get the servername when running scripts from CLI mode (like
> kronolith/scripts/reminders.php) when we use the following definition in
> 'config/conf.php':
>
>   $conf['server']['name'] = $_SERVER['SERVER_NAME'];
>
> This is obviously not defined when running a CLI script. Should we use set
> SERVER_NAME in the ENVIRONMENT and use "$_ENV['SERVER_NAME']" in the script?

http://cvs.horde.org/co.php/framework/CLI/CLI.php?r=1.36#309

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting.php


More information about the dev mailing list