2
私のアプリケーションでは、毎日の更新のためにcronジョブを設定する必要があります。私はここで cronジョブ戻るログインページhtml in codeigniter
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';
は私のコントローラ
class Cron extends CI_Controller {
public function cron_job(){
if (!$this->input->is_cli_request()){
echo 'test';
//show_error('Direct access is not allowed');
}
else{
echo 'call';
}
}
}
であると私は
/usr/bin/php /home/public_html/my_app/index.php cron cron_job
しかし、この戻りのようcpenalにパスを設定している私のconfig.phpファイルCodeIgniterの3.0
を使用していますアプリのフロントページでもあるログインページのhtml。 パスに問題があると思います。どうすれば修正できますか?
ありがとうございました。 -cliは動作します。 –