my controller cron_jobs in user folder and method is job
class Cron_jobs extends CI_Controller {
function Cron_jobs()
{
parent::__construct();
}
function job() {
if($this->input->is_cli_request()) {
echo "hello";
}
}
}
in cpanel i try some of ans i find
http://www.my_site.com/user/cron_jobs/job
wget http://www.my_site.com/user/cron_jobs/job
curl --silent http://my_site.com/user/cron_jobs/job
php index.php user/cron_jobs job
wget -q -O /dev/null http://www.my_site.com/user/cron_jobs/job
wget -q http://www.my_site.com/user/cron_jobs/job
/usr/local/bin/php /home/my_site/public_html/index.php/user/cron_jobs/job
non of this are working for me....any one hving any idea
Try this
wget -O /dev/null http://www.my_site.com/user/cron_job/job
and change the time as */5 * * * * for testing.
message sending every 5 minutes
You were very close with one of your examples!
Try:
php index.php user cron_jobs job
Hope this helps!
However, if the above doesn't work please have a look at this Link .
Instead of php index.php user/cron_jobs job
try php-cli index.php user/cron_jobs job
Some servers require the php-cli for command line interface execution.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.