Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Niklas Schäffer  >  PHP Mail Log Parser  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example script
Class: PHP Mail Log Parser
Filter mail server logs to extract email addresses
Author: By
Last change:
Date: 2013-02-14 02:45
Size: 421 bytes
 

Contents

Class file image Download
<?php

ini_set
("display_errors"true);
ini_set("error_reporting"E_ALL);
ini_set("memory_limit""5000M");
ini_set("max_execution_time"0);

require_once 
'mailparser.class.php';

$objMailLogParser = new MailParser("Feb  9 02:33:""Feb  9 05:13:""/var/log/mail.info.1");

$objMailLogParser->readFile();
$objMailLogParser->getMatches();
$objMailLogParser->showParsedData();
$objMailLogParser->writeParsedData();


?>