View Single Post
Old 03-09-2005, 03:59 PM  
calmlikeabomb
Confirmed User
 
calmlikeabomb's Avatar
 
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
Hi,

What you need is config.inc just save this code as config.inc and include at the top of your php pages.

Code:
<?php

// This script sets the error reporting and logging for the site.

//error_reporting (0); // Production level
error_reporting (E_ALL); // Development level

// Use my own error handling function.
function my_error_handler ($e_number, $e_message, $e_file, $e_line) {

	$message = 'An error occurred in script ' . $e_file . ' on line ' . $e_line . ": $e_message";
	//error_log ($message, 1, '[email protected]'); // Production (send email)
	echo '<font color="red">', $message, '</font>'; // Development (print the error in red)
}
set_error_handler('my_error_handler');
?>
__________________
subarus.
calmlikeabomb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote