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

Marc Jauvin marc at register4less.com
Thu Jul 8 11:17:46 PDT 2004


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?

Thanks.

--
Marc Jauvin
514-905-6500
http://register4less.com


More information about the dev mailing list