0

您好,我正在从我的服务器发送邮件。

如果我直接在服务器上运行它,我会得到一个正确的 url,但是当处理 cronjob 时,url 是本地主机。我正在使用带有 ssmtp 在 Ubuntu 13.04 上运行的 CodeIgniter 框架

这是我的编码:

$yes = site_url('job/itemExtend/?id=' . urlencode($this->encrypt->encode($itemid)));
$no = site_url('job/itemFree/?id=' . urlencode($this->encrypt->encode($itemid)));

我的定时任务:

10 0 * * * php /var/www/TakeAway/index.php job checkTakeAways
4

1 回答 1

0

PHP uses separate ini files depending on the environment :

  • php.ini
  • cli/php.ini
  • cgi/php.ini

Make sure you have configured them all correctly to specify the option

于 2013-12-12T10:43:35.197 回答