[dev] conf['server']['name']
Chuck Hagenbuch
chuck at horde.org
Thu Jul 8 11:20:02 PDT 2004
Quoting 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?
Horde_CLI takes care of this, and whups/scripts/reminders.php has an
example of
how to set it based on a config setting.
-chuck
--
"Regard my poor demoralized mule!" - Juan Valdez
More information about the dev
mailing list