I wrote a script. It's working at least 10 minutes and after all this time it shows the results at the end.Script stops and it shows the result. Is there a way to show results instantly. The datas that will shown on the page comes in random time.
You can accomplish this by using PHPs output buffering. Do something like this // at the top of your script ob_start(); // Insert all of your code here // At the end of your script $output = ob_get_contents(); ob_end_clean(); // Here you can do any work on your $output, like replacements etc. echo $output; PHP: This stores everything into the output buffer so when you echo, it spits everything your script generated out in 1 hit. Hope this helps