PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of solomongaby   mailLogger   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: example of,loggin an error
Class: mailLogger
Log information to files and send by e-mail
Author: By
Last change:
Date: 15 years ago
Size: 326 bytes
 

Contents

Class file image Download
<?php
require ('mailLogger.class.php');
$logger = mailLogger::instance(url_encode('logs/log.txt'));

$params = array(
   
'error' => $error,
   
'page' => $_SERVER['REQUEST_URI'],
   
'GET' => print_r($_GET,true),
   
'POST' => print_r($_POST,true),
   
'SESSION' => print_r($_SESSION,true)
);
$logger->log('error', $params);