<?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: Log visitors to file</title>
	<atom:link href="http://www.999tutorials.com/php/log-visitors-to-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.999tutorials.com/php/log-visitors-to-file/</link>
	<description>999Tutorials.com - Your Tutorial Spot</description>
	<lastBuildDate>Fri, 05 Mar 2010 07:35:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: admin</title>
		<link>http://www.999tutorials.com/php/log-visitors-to-file/comment-page-1/#comment-6045</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 05 Mar 2010 07:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=31#comment-6045</guid>
		<description>xvga: You are absolutely right! I&#039;ll see if we can investigate a little on the best way to prevent race conditions for an upcoming tutorial.
One simple way that I know some people use is to create a random name for the file and save a one copy for every row you write, and take care of merging them in another process.</description>
		<content:encoded><![CDATA[<p>xvga: You are absolutely right! I&#8217;ll see if we can investigate a little on the best way to prevent race conditions for an upcoming tutorial.<br />
One simple way that I know some people use is to create a random name for the file and save a one copy for every row you write, and take care of merging them in another process.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xvga</title>
		<link>http://www.999tutorials.com/php/log-visitors-to-file/comment-page-1/#comment-5603</link>
		<dc:creator>xvga</dc:creator>
		<pubDate>Mon, 15 Feb 2010 16:43:46 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=31#comment-5603</guid>
		<description>what about race conditions? 
In reality, your site might get 2 or 5 or many requests at (approximately) the same time... btw, how many threads does your apache run? correct - many... so that means that on line 12 there will start competition about who&#039;s gonna write to file :)</description>
		<content:encoded><![CDATA[<p>what about race conditions?<br />
In reality, your site might get 2 or 5 or many requests at (approximately) the same time&#8230; btw, how many threads does your apache run? correct &#8211; many&#8230; so that means that on line 12 there will start competition about who&#8217;s gonna write to file <img src='http://www.999tutorials.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://www.999tutorials.com/php/log-visitors-to-file/comment-page-1/#comment-1797</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Thu, 10 Sep 2009 08:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=31#comment-1797</guid>
		<description>I happily will, when I&#039;ve got round to implementing it, I haven&#039;t had any chance to implement it yet :P</description>
		<content:encoded><![CDATA[<p>I happily will, when I&#8217;ve got round to implementing it, I haven&#8217;t had any chance to implement it yet <img src='http://www.999tutorials.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.999tutorials.com/php/log-visitors-to-file/comment-page-1/#comment-1697</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 04 Sep 2009 11:20:33 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=31#comment-1697</guid>
		<description>Glad to be able to help! Always feel free to link our site up if you like to ;-)</description>
		<content:encoded><![CDATA[<p>Glad to be able to help! Always feel free to link our site up if you like to <img src='http://www.999tutorials.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://www.999tutorials.com/php/log-visitors-to-file/comment-page-1/#comment-1695</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Fri, 04 Sep 2009 10:34:49 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=31#comment-1695</guid>
		<description>Spot on, just what I was looking for, thanks very much!</description>
		<content:encoded><![CDATA[<p>Spot on, just what I was looking for, thanks very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.999tutorials.com/php/log-visitors-to-file/comment-page-1/#comment-7</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 03 May 2009 20:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=31#comment-7</guid>
		<description>Thanks Enrice, it has been corrected now!</description>
		<content:encoded><![CDATA[<p>Thanks Enrice, it has been corrected now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enrico</title>
		<link>http://www.999tutorials.com/php/log-visitors-to-file/comment-page-1/#comment-6</link>
		<dc:creator>Enrico</dc:creator>
		<pubDate>Sun, 03 May 2009 20:14:02 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=31#comment-6</guid>
		<description>just a little mistake...

[..]
$logLine = “$visitTime - IP: $ip &#124;&#124; User Agent: $agent &#124;&#124; Page: $uri &#124;&#124; Referrer: $ref\n”;
[..]
fputs($fp, $entry_line);
[..]

variable $entry_line should be $logLine</description>
		<content:encoded><![CDATA[<p>just a little mistake&#8230;</p>
<p>[..]<br />
$logLine = “$visitTime &#8211; IP: $ip || User Agent: $agent || Page: $uri || Referrer: $ref\n”;<br />
[..]<br />
fputs($fp, $entry_line);<br />
[..]</p>
<p>variable $entry_line should be $logLine</p>
]]></content:encoded>
	</item>
</channel>
</rss>
