View Single Post
  #3 (permalink)  
Old 01-28-2006, 08:47 PM
clancey clancey is offline
New Pligger
 
Join Date: Jan 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Further to my initial thread. You can also limit the errors reported by PHP in either your php.ini file or by adding something to the config.php file, which is called fro all the php modules in pligg. Some examples from php.net are:

Quote:
<?php

// Turn off all error reporting
error_reporting(0);

// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);

// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);

// Report all errors except E_NOTICE
// This is the default value set in php.ini
error_reporting(E_ALL ^ E_NOTICE);

// Report all PHP errors (bitwise 63 may be used in PHP 3)
error_reporting(E_ALL);

// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);

?>

Last edited by clancey; 01-30-2006 at 10:35 AM..
Reply With Quote