Forum Moderators: coopster
I have a script that does a number of database and file operations on a server, the whole thing takes about 5 minutes to execute.
After each section, the script echo's that part has been done and then flush's it, so that my client can see where its up to in real time.
However the client wants to setup a cron so that it runs automatically each night without him having to open his browser and execute the script each time.
If I setup a cron, should I set ignore_user_abort in the script because the cron does a simple GET request and surely wont hang on for 5 minutes?
If you read the manual [php.net] it says something about flush which is why I am confused.
So, any ideas? Thanks in advance.