Hello
I have written my own PHP code for handling errors and I have used set_error_handler to configure PHP to work with it.
Everything works fine. When I get an error, my code is invoked.
Here is my problem:
I would like to display informaion about the error in a NEW browser window and not in the same window that the error occured in (the error could poternitally be in an inner frame, and IFrame).
The problem is that the code that handles the error is on the Server side (PHP). I need to get to the client side in order to open a new browser window.
I tried doing the following trick.
When I encounter a bug in my PHP error handling function, I store state information about the bug, including the fact that a bug has occurred.
The I thought that I would let the page continue rendering itself (behaving as if the error never occurred), and on the onload event of the page, I would check if an error has occurred. If so, I would open a new browser window and send to it all the state informaion about the error that I have stored.
The problem with this solution is that PHP doesn’t continue rendering the page once it encounters an error, and obviously that doesn’t cause my onload code to be rendered.
Is there some way I can cause my error handling function to display information about the bug in a new browser window?
regards
Jason