output-buffering

PHP: Output data before and after sleep()?

This is purely for learning more about output buffering and nothing more. What I wish to do is echo a string to the browser, sleep 10 seconds, and then echo something else. Normally the browser would wait the full 10 seconds and then post the whole result, how I would I stop that? An example: ob_start(); echo "one"; sleep(10); echo "two...

What issues do you find in this VERY basic Template Engine in PHP using eval?

For some years that I've been using my own PHP template engine, which is not really "my own" as I saw it on a tutorial many years ago. However, I've refactored most of the code making it simpler and easier to use. I rarely make a PHP project without it. It's very basic and the class only has 3 methods, load, assign and render. The load ...

PHP ob_start() question.

Am I allowed to have two or more ob_start(); in my php files if so what is the proper way to end one ob_start(); and start another? ...