PHP Classes

File: install/includes/error.php

Recommend this page to a friend!
  Classes of Mark Richards   CliqonV4   install/includes/error.php   Download  
File: install/includes/error.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: CliqonV4
Framework with modules to build Web applications
Author: By
Last change:
Date: 6 years ago
Size: 804 bytes
 

Contents

Class file image Download
<?php
/**
* Cliqon Lite Error Handling
*
* @author Mark Richards, Webcliq
* @version 4.0.1
*/
// Delete existing log file if it exists
if(file_exists($rootpath.'log/php_error.log')) {
   
// unlink($rootpath.'log/php_error.log');
};

// Set reporting level
ini_set('error_reporting', E_ALL & ~(E_NOTICE | E_STRICT | E_WARNING)); // Suitable for PHP 5.4 which includes STRICT
error_reporting(E_ALL & ~(E_NOTICE | E_STRICT | E_WARNING));
ini_set('log_errors', 1); // enable or disable php error logging (use 'On' or 'Off')
ini_set('display_errors', 1); // enable or disable public display of errors (use 'On' or 'Off')
   
ini_set("error_log", $sitepath."log/php_error.log"); // path to server-writable log file

// Write to error_log with error_log('msg', lvl, 'filepath - again')