Skip to content

Instantly share code, notes, and snippets.

@GromNaN GromNaN/errors.php
Created Nov 21, 2012

Embed
What would you like to do?
Jolies erreurs PHP
<?php
function handler ($errno, $errstr, $errfile, $errline)
{
echo "<div style=\"background: #ffe13b; color: black; position: fixed; bottom: 0; width: 100%; text-align: center; font-size: 13px; padding: 5px; box-shadow: 0 0 5px black;\">Erreur $errno $errstr in $errfile:$errline
</div>";
}
set_error_handler('handler');
@jeromemacias

This comment has been minimized.

Copy link

commented Nov 21, 2012

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.