I need to parse large Excel tables into my database. I'm using PHPExcel. The files are too big to import them at once, and I have to deal with max execution time and memory restrictions.
So now the system works this way: operator uploads the files in browser, and then the import scripts runs many times, until the whole file is parsed. The PHP script imports only part of excel file, and returns a value. If there are still some unparsed rows - script runs again by AJAX.
Now I want to move this task to cron, but I don't know how, because I don't know how many times the script needs to be executed until the job is done.
Is there some way to execute script again and again until it is done, but without dealing with it in browser (by AJAX, reload, etc.)