I’ve been searching about PHP batch tutorials, but nothing so far.
I’ve been given a task to import data from MS Excel. For each excel data, will be processed by PHP to create mysql rows.
Because of complexity of 1 excel data, I want to build a batch system, where PHP process 1 row at a time, display some progress bar. Then prevent timeout (which is set to 60 seconds).
Any guidelines / example / etc for this?
Thanks
for prevent timeout you must put set_time_limit(0); at first of code if you want browser didn’t timeout you must echo some data and flush for browser