Right now in order to see the results, I have to wait until the entire code is done executing. It hangs until it's complete and stays loading. Once it's finished it shows all the information I was looking for.. Is there anyway to show this while the script is still running? So say if I have a print somewhere at the top of my code, I want it to show when it's called not when the script is done executing.
Anyone know how to do this?
Thanks
You can use output buffering like this:
ob_start(); echo('doing something...'); // send to browser ob_flush(); // ... do long running stuff echo('still going...'); ob_flush(); echo('done.'); ob_end_flush();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With