How to execute a function automatically? - 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: How to execute a function automatically? (/showthread.php?tid=22535) |
How to execute a function automatically? - El Forum - 09-12-2009 [eluser]cavi1905[/eluser] Hello everybody, I want to call a php function automatically after 1 hour ... How do I do? This function is a piece of a library, and I want to execute it automatically.. Please help me... Thanks! How to execute a function automatically? - El Forum - 09-12-2009 [eluser]pmorris[/eluser] Well, assuming you're on a *nix platform, use cron to schedule your job. I see that there is instruction in the CI wiki for it (http://codeigniter.com/wiki/Category:Advanced::CronScript/), but I've chosen to use this method: http://jonathonhill.net/codeigniter/cron/ - Phil |