在Linux Crontab上从CodeIgniter运行PHP脚本

时间:2013-08-07 12:58:51

标签: php crontab

我必须在CodeIgniter函数中使用代码crontab一天的时间间隔。

我使用以下作为crontab:

  

link * / 1 * * * * / usr / local / bin / wget -q -0:http / home / address / index.php / Tools / message

这是我的PHP:

class Tools extends CI_Controller
{
    public function message($to = 'World')
    {
        echo "Hello {$to}!".PHP_EOL;
        error_log($to);
    }
}

这不起作用,error_log保持为空。为什么会这样?

0 个答案:

没有答案
相关问题