You could also use system() or exec() and start the processes in the
background, then have it take a count of how many rows it will be
working with, then write the percent out to a text file. From there you
would have the page that the user is looking at just refresh every 3
sec and load the contents of the text file.