Further to my previous question, what\'s the best approach when I want to buffer PHP output until I have performed all processing? I want to buffer to leave myself the optio
Well written code needs no output buffering. By that I mean: first, you do all your processing, without any output. Business logic, validation, database access - this kind of stuff. After this is done, you can close the DB connection, the session, etc. because all you do is create your output based on data collected above.
This method usually results in far better maintainable code.