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

Marc Jauvin marc at register4less.com
Thu Jul 8 12:05:27 PDT 2004


The trouble with the default SERVER_NAME (127.0.0.1) set by 
Horde_CLI::init() is
that some mail servers will refuse mail coming in from an unknown domain...

In attachment, a patch to 'kronolith/lib/Scheduler/kronolith.php'.

Thanks.


Jan Schneider <jan at horde.org> wrote:

> 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
>
> --
> Horde developers mailing list - Join the hunt: http://horde.org/bounties/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org



--
Marc Jauvin
514-905-6500
http://register4less.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 1688 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20040708/95909c5a/patch.bin


More information about the dev mailing list