I'm using PHP's set_error_handler(brodeur) so that I can customize the behavior of error handling.
Now I find myself wanting to customize the display location/positioning of the output. Currently, as expected, the errors are displayed where the offending PHP code is located within the markup.
I would preferably like to have the output displayed at the very bottom or very top of the page so that it does not disturb the CSS/layout of the page content.
My issue is that I declare the brodeur function first in my code, then define the set_error_handler(brodeur) code, then comes the <HTML>...</HTML> content.
If I created a DIV wrapper at the bottom of my page (or top) what would be the best way to then place these error strings within that DIV, when the PHP code to do so will not be located within the DIV? Or are there any alternatives I am missing out on?