![]() |
Background processing without user waiting - 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: Background processing without user waiting (/showthread.php?tid=5099) |
Background processing without user waiting - El Forum - 01-05-2008 [eluser]yongkhun[/eluser] Hi all, I have a time-consuming task to be executed in PHP but I do not want the user to keep waiting until the task is completed. Meaning that, after the user load the controller method, the page will complete loading immediately (browser loading done and not keep waiting), while in the background the controller method will keep on running the time-consuming task. I have tried the flush() but the browser will still keep waiting. I have heard of cron but I do not want to use cron because it is only possible for Linux environment. I want my code to be able to run both Linux and Win platform. Any suggestion is appreciated, thanks! Background processing without user waiting - El Forum - 01-05-2008 [eluser]tomcode[/eluser] I am using a hook (post_system) to update thumbs after the output is sent to the browser. Background processing without user waiting - El Forum - 01-06-2008 [eluser]Rick Jolly[/eluser] There are web sites that will allow you to register a cron job. They simply call your script at the time intervals you set. |