I have a script that runs for quite a while and I am using ob_start()
to buffer the output and print the result after the script finishes executing.
I need to show some loading animation while the script executes and replace it with the output when the script finishes executing.
I know that it can be done quite beautifully with JavaScript and jQuery. I was just wondering whether it can be done using PHP alone?
Is there any library that allows PHP to do this?