![]() |
Calling a CI function periodically - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Calling a CI function periodically (/showthread.php?tid=28289) |
Calling a CI function periodically - El Forum - 03-07-2010 [eluser]shiroin[/eluser] I wrote some maintenance functions in a controller called 'maintenance'. I wish to call the CI function periodically (once/day for instance) to make sure parts of my database are in check. How do I achieve this? Calling a CI function periodically - El Forum - 03-07-2010 [eluser]Aidy[/eluser] I don't know much about them but I think cron jobs allow you to execute scripts periodically on a server. Calling a CI function periodically - El Forum - 03-07-2010 [eluser]shiroin[/eluser] [quote author="Aidy" date="1267990087"]I don't know much about them but I think cron jobs allow you to execute scripts periodically on a server.[/quote] can cron jobs execute URLs? Calling a CI function periodically - El Forum - 03-07-2010 [eluser]WanWizard[/eluser] Use wget to request the URI. Calling a CI function periodically - El Forum - 03-07-2010 [eluser]pistolPete[/eluser] Please use the forum search, this is a often discussed topic, e.g. http://ellislab.com/forums/viewthread/147404/. |