<?php include 'LogParser.php'; try { $Instance = new LogParser('access.log'); // get a log line while ($LogString = $Instance->GetLine()) { $ParsedData = $Instance->Parse($LogString); // parse/format the line echo '<pre>'; print_r($ParsedData); echo '</pre>'; } } catch(Exception $e) { echo $e->getMessage(); } ?>