PHP 8.4.0 Alpha 1 available for testing

Voting

The Note You're Voting On

Johan
13 years ago
Custom error handling on entire pages can avoid half rendered pages for the users:

<?php
ob_start
();
try {
/*contains all page logic
and throws error if needed*/
...
} catch (
Exception $e) {
ob_end_clean();
displayErrorPage($e->getMessage());
}
?>

<< Back to user notes page

To Top