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: Initial commit
Date: 1 month ago
Size: 374 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");
?>