Is there any way to output each line of PHP as it is executed without using the command line? For example, lets say I am building a small vulnerability tester in PHP that checks a URL for vulnerabilities. The check uses a function that either outputs Yes, or No. instead of having to wait for the whole page to load, is there a way to print them out one at a time as they are checked? Thanks.
I wanted the same thing long time ago. If I remember right it depends on the browser if it will display line per line. after you echo the line use these 2 lines: ob_flush(); flush(); See if that does what you want.
Update, dont worry about. I decided to scrap that idea and just go with AJAX. Thanks for the attempt though.