How capture compilation errors from an include script?
I want to include a file inside a function and using ob_start(),
ob_get_contents(), etc save the output to a file.
But if there's an error in that included file, I want:
For my function to know that and capture it (so it can handle it gracefully)
To not output the error
Will set_error_handler allow this?
No comments:
Post a Comment