Not working shared hosting cPanel cronjob under Codeigniter
问题 Despite there are many posts with a similar topic, I couldn't find anyone matching my case that I briefly describe here. This is the testing script <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); require 'DashboardBase.php'; class Hello extends CI_Controller { public function message($to = 'World') { echo "Hello {$to}!".PHP_EOL; print "Hello {$to}!".PHP_EOL; log_message('error',"Hello {$to}!".PHP_EOL); } } ?> The web server is under a shared hosting; it is used cPanel