CodeIgniter Forums
Use codeigniter (PHP) to set cron jobs in Windows server 2008 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forum-6.html)
+--- Forum: Issues (https://forum.codeigniter.com/forum-19.html)
+--- Thread: Use codeigniter (PHP) to set cron jobs in Windows server 2008 (/thread-61566.html)



Use codeigniter (PHP) to set cron jobs in Windows server 2008 - codewithscript - 04-26-2015

I am using Codeigniter for my website. I need to use windows task scheduler ( windows server 2008) to run codeigniter controller function. In task scheduler i set Program script: "C:php\php.exe " and arguements: -f C:cron\schedule.php. but it is not working . my controller name and its function : localhost/cron/schedule/report.


RE: Use codeigniter (PHP) to set cron jobs in Windows server 2008 - gabykant - 11-25-2015

(04-26-2015, 09:38 PM)codewithscript Wrote: I am using Codeigniter for my website. I need to use windows task scheduler ( windows server 2008) to run codeigniter controller function. In task scheduler i set Program script: "C:php\php.exe " and arguements: -f C:cron\schedule.php. but it is not working . my controller name and its function : localhost/cron/schedule/report.


Check this . You have to copy the content of each folder to your respective one and setup your windows credentials in the library/ksoftcron.php