Clean error page without output buffering

[email protected]
Newsgroups php.general
Message-ID <haeAt9t7Sp0nsp_36FxudaPD8gKT1hGYTl3PDZ4azz8bo7wiudAtI7BGsKKi309xSfxioauupGqSH7gDG7WzAF83vIp7bq_mB2vjM0o8R7Y=@protonmail.com>
Normally an error in the output generating code, whether generated with a template engine or just by using PHP as the template engine (which is what I do), will display AFTER any prior output has already reached the browser.

Is it possible to make a custom error and exception handler display a clean page with a custom message without the use of output buffering?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.