Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2008-11-30 07:35
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);