Login   Register  
PHP Classes
elePHPant
Icontem

File: set_error_handling.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nadir Latif  >  MP3 Management  >  set_error_handling.php  >  Download  
File: set_error_handling.php
Role: Auxiliary script
Content type: text/plain
Description: Sets the error handling function for the process_files.php file
Class: MP3 Management
Catalog MP3 files in a MySQL database
Author: By
Last change: removed my email address from the error handling code. Users of the script must enter their own email address.
Date: 2008-09-08 05:03
Size: 383 bytes
 

Contents

Class file image Download
<?
error_reporting
(E_ALL E_NOTICE);
function 
error_handler($number$string$file$line)
    {
        if(
strpos($file,"getid3")===false||strpos($file,"getid3")===""||strpos($file,"getid3")===0)
        
error_log("Error ($number) on line $line in file $file. The error was \"$string\"\n"1"your_email_address");
    }
ini_set('display_errors',0);
set_error_handler("error_handler");
?>