update page now
Longhorn PHP 2026 - Call For Papers

Voting

: three minus three?
(Example: nine)

The Note You're Voting On

RGraph
3 years ago
A simple error handler that makes errors far more visible:

    //
    // Set the error handler to one that prints out more
    // visible errors
    //
    set_error_handler(function ($errno, $errstr)
    {
        $str = '<div style="margin: 20px; background-color: #fdd; border: 3px solid red; padding: 10px; border-radius: 15px; line-height: 25px"><b>Error: </b>%s (error level: %s)</div>';
        
        printf($str, $errstr, $errno);
    });

<< Back to user notes page

To Top