<?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);
|