<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Parse Apache Log Files With PHP</title>
	<atom:link href="http://blog.ericlamb.net/2010/01/parse-apache-log-files-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ericlamb.net/2010/01/parse-apache-log-files-with-php/</link>
	<description>Thoughts on programming, people and life</description>
	<lastBuildDate>Sat, 04 Feb 2012 09:01:37 -0800</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: yauri</title>
		<link>http://blog.ericlamb.net/2010/01/parse-apache-log-files-with-php/comment-page-1/#comment-106955</link>
		<dc:creator>yauri</dc:creator>
		<pubDate>Wed, 30 Nov 2011 13:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericlamb.net/?p=2837#comment-106955</guid>
		<description>Thanks for the class :)
I enhance the code with jQuery Plugin</description>
		<content:encoded><![CDATA[<p>Thanks for the class <img src='http://blog.ericlamb.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I enhance the code with jQuery Plugin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DJ</title>
		<link>http://blog.ericlamb.net/2010/01/parse-apache-log-files-with-php/comment-page-1/#comment-96322</link>
		<dc:creator>DJ</dc:creator>
		<pubDate>Mon, 17 Oct 2011 14:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericlamb.net/?p=2837#comment-96322</guid>
		<description>You sir, are a wonderful human being.  Saved me my morning.  Great code.</description>
		<content:encoded><![CDATA[<p>You sir, are a wonderful human being.  Saved me my morning.  Great code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://blog.ericlamb.net/2010/01/parse-apache-log-files-with-php/comment-page-1/#comment-83398</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Fri, 26 Aug 2011 17:10:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericlamb.net/?p=2837#comment-83398</guid>
		<description>Seems like there&#039;s a bug in this version that wasn&#039;t in the original class:

Fatal error: Call to undefined method apache_log_parser::getData() in /wwwroot/example.php on line 48

include &#039;apache-log-parser.php&#039;;
$log = &#039;Jun-2011.log&#039;;

$parser = new apache_log_parser($log); // Create an apache log parser
if($parser == false)
{
  echo &quot;Unable to create parser for: $log&quot;;
  exit;
}

$parser-&gt;filters = array(
	&#039;path&#039; =&gt; array(&#039;regex&#039; =&gt; &#039;/^.*\.(PHP&#124;php)$/&#039;) //pull only php files
);
 
$log_data = $parser-&gt;getData();
echo &quot;&lt;pre&gt;&quot;;
print_r($log_data); // print out the array
echo &quot;&lt;/pre&gt;&quot;;</description>
		<content:encoded><![CDATA[<p>Seems like there&#8217;s a bug in this version that wasn&#8217;t in the original class:</p>
<p>Fatal error: Call to undefined method apache_log_parser::getData() in /wwwroot/example.php on line 48</p>
<p>include &#8216;apache-log-parser.php&#8217;;<br />
$log = &#8216;Jun-2011.log&#8217;;</p>
<p>$parser = new apache_log_parser($log); // Create an apache log parser<br />
if($parser == false)<br />
{<br />
  echo &#8220;Unable to create parser for: $log&#8221;;<br />
  exit;<br />
}</p>
<p>$parser-&gt;filters = array(<br />
	&#8216;path&#8217; =&gt; array(&#8216;regex&#8217; =&gt; &#8216;/^.*\.(PHP|php)$/&#8217;) //pull only php files<br />
);</p>
<p>$log_data = $parser-&gt;getData();<br />
echo &#8220;
<pre>";
print_r($log_data); // print out the array
echo "</pre>
<p>&#8220;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matsu</title>
		<link>http://blog.ericlamb.net/2010/01/parse-apache-log-files-with-php/comment-page-1/#comment-72959</link>
		<dc:creator>matsu</dc:creator>
		<pubDate>Sat, 23 Jul 2011 03:24:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericlamb.net/?p=2837#comment-72959</guid>
		<description>Thank you for your work.
I was searching PHP apache log parser.</description>
		<content:encoded><![CDATA[<p>Thank you for your work.<br />
I was searching PHP apache log parser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://blog.ericlamb.net/2010/01/parse-apache-log-files-with-php/comment-page-1/#comment-25553</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Tue, 11 Jan 2011 19:00:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericlamb.net/?p=2837#comment-25553</guid>
		<description>Nice code!

You have a copy and paste typo on the line:
$formated_log[&#039;user&#039;] = $logs[2];

(should be 3, not 2)

Cheers,

DM</description>
		<content:encoded><![CDATA[<p>Nice code!</p>
<p>You have a copy and paste typo on the line:<br />
$formated_log['user'] = $logs[2];</p>
<p>(should be 3, not 2)</p>
<p>Cheers,</p>
<p>DM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abcphp.com</title>
		<link>http://blog.ericlamb.net/2010/01/parse-apache-log-files-with-php/comment-page-1/#comment-1720</link>
		<dc:creator>abcphp.com</dc:creator>
		<pubDate>Sat, 09 Jan 2010 10:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericlamb.net/?p=2837#comment-1720</guid>
		<description>&lt;strong&gt;Parse Apache Log Files With PHP &#124; Made of Everything You&#039;re Not &#124; Eric Lamb...&lt;/strong&gt;

Parsing the log files generated by Apache is one of those random tasks with a random occurrence in my world. This is a task that, until recently, hadn&#039;t come up &#124; Eric Lamb...</description>
		<content:encoded><![CDATA[<p><strong>Parse Apache Log Files With PHP | Made of Everything You&#8217;re Not | Eric Lamb&#8230;</strong></p>
<p>Parsing the log files generated by Apache is one of those random tasks with a random occurrence in my world. This is a task that, until recently, hadn&#8217;t come up | Eric Lamb&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

