/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // funcion de errores personalizado function nettuts_error_handler($number, $message, $file, $line, $vars){ $email = " <p>An error ($number) occurred on line <strong>$line</strong> and in the <strong>file: $file.</strong> <p> $message </p>"; $headers = 'Content-type: text/html; charset=iso-8859-1' . " "; // enviar log de errores a un Email // Si es un error demasiado critico, pararlo. if ( ($number !== E_NOTICE) && ($number < 2048) ) { } } // declaramos cual sera la funcion que se ejecutara cuando ocurra un error // realizando un error con una variable no existente echo $somevarthatdoesnotexist;
URL: http://craftyman.net/errores-con-php-enviarlos-email/
Comments
