<?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: Creating a cache file in php for API requests</title>
	<atom:link href="http://phpcollection.com/creating-a-cache-file-in-php-for-api-requests/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpcollection.com/creating-a-cache-file-in-php-for-api-requests/</link>
	<description>PHP Tutorials collection</description>
	<lastBuildDate>Mon, 07 May 2012 05:11:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Georgedrak</title>
		<link>http://phpcollection.com/creating-a-cache-file-in-php-for-api-requests/comment-page-1/#comment-599</link>
		<dc:creator>Georgedrak</dc:creator>
		<pubDate>Sat, 07 Apr 2012 14:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=702#comment-599</guid>
		<description>I don&#039;t understand the if statement

if(filectime($filename) &lt;= $time_expire). This shouldn&#039;t be always true? You have setup $time_expire as rightnow+24H.

Maybe this is more right?

if( filemtime($filename) + 24*60*60 &lt;= time())</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand the if statement</p>
<p>if(filectime($filename) &lt;= $time_expire). This shouldn&#039;t be always true? You have setup $time_expire as rightnow+24H.</p>
<p>Maybe this is more right?</p>
<p>if( filemtime($filename) + 24*60*60 &lt;= time())</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn PHP</title>
		<link>http://phpcollection.com/creating-a-cache-file-in-php-for-api-requests/comment-page-1/#comment-567</link>
		<dc:creator>Learn PHP</dc:creator>
		<pubDate>Sat, 25 Feb 2012 07:56:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=702#comment-567</guid>
		<description>@Nomi Just replace file_get_contents() with the curl download function and this would work. Let me know if it helps.</description>
		<content:encoded><![CDATA[<p>@Nomi Just replace file_get_contents() with the curl download function and this would work. Let me know if it helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn PHP</title>
		<link>http://phpcollection.com/creating-a-cache-file-in-php-for-api-requests/comment-page-1/#comment-566</link>
		<dc:creator>Learn PHP</dc:creator>
		<pubDate>Sat, 25 Feb 2012 07:54:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=702#comment-566</guid>
		<description>What difficulties. 

Please note that i am not creating folders in this tutorial, that needs a separate function. I am just creating files in a folder.</description>
		<content:encoded><![CDATA[<p>What difficulties. </p>
<p>Please note that i am not creating folders in this tutorial, that needs a separate function. I am just creating files in a folder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn PHP</title>
		<link>http://phpcollection.com/creating-a-cache-file-in-php-for-api-requests/comment-page-1/#comment-565</link>
		<dc:creator>Learn PHP</dc:creator>
		<pubDate>Sat, 25 Feb 2012 07:52:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=702#comment-565</guid>
		<description>Noted, will see if that makes some valuable difference in performance.</description>
		<content:encoded><![CDATA[<p>Noted, will see if that makes some valuable difference in performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn PHP</title>
		<link>http://phpcollection.com/creating-a-cache-file-in-php-for-api-requests/comment-page-1/#comment-564</link>
		<dc:creator>Learn PHP</dc:creator>
		<pubDate>Sat, 25 Feb 2012 07:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=702#comment-564</guid>
		<description>This was originally design to create cache files out of API requests. Sometime this went out to be many MB&#039;s. Not sure memcache is the right approach for that.</description>
		<content:encoded><![CDATA[<p>This was originally design to create cache files out of API requests. Sometime this went out to be many MB&#8217;s. Not sure memcache is the right approach for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nomi</title>
		<link>http://phpcollection.com/creating-a-cache-file-in-php-for-api-requests/comment-page-1/#comment-560</link>
		<dc:creator>nomi</dc:creator>
		<pubDate>Thu, 02 Feb 2012 16:24:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=702#comment-560</guid>
		<description>I&#039;m looking for curl php cache script :(
Any clue?</description>
		<content:encoded><![CDATA[<p>I&#8217;m looking for curl php cache script <img src='http://phpcollection.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
Any clue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jim-websitemarketing</title>
		<link>http://phpcollection.com/creating-a-cache-file-in-php-for-api-requests/comment-page-1/#comment-559</link>
		<dc:creator>jim-websitemarketing</dc:creator>
		<pubDate>Thu, 26 Jan 2012 18:22:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=702#comment-559</guid>
		<description>I have difficulties in setup the catch directory.</description>
		<content:encoded><![CDATA[<p>I have difficulties in setup the catch directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arik Jones</title>
		<link>http://phpcollection.com/creating-a-cache-file-in-php-for-api-requests/comment-page-1/#comment-372</link>
		<dc:creator>Arik Jones</dc:creator>
		<pubDate>Mon, 20 Dec 2010 17:41:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=702#comment-372</guid>
		<description>You should use &lt;code&gt;filemtime&lt;/code&gt; instead of &lt;code&gt;filectime&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>You should use <code>filemtime</code> instead of <code>filectime</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: inversechi</title>
		<link>http://phpcollection.com/creating-a-cache-file-in-php-for-api-requests/comment-page-1/#comment-222</link>
		<dc:creator>inversechi</dc:creator>
		<pubDate>Wed, 03 Mar 2010 06:14:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=702#comment-222</guid>
		<description>This helped me getting started with writing a simple caching plugin for API&#039;s to use within codeigniter - thank you :)</description>
		<content:encoded><![CDATA[<p>This helped me getting started with writing a simple caching plugin for API&#39;s to use within codeigniter &#8211; thank you <img src='http://phpcollection.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Php Ninza</title>
		<link>http://phpcollection.com/creating-a-cache-file-in-php-for-api-requests/comment-page-1/#comment-223</link>
		<dc:creator>Php Ninza</dc:creator>
		<pubDate>Wed, 03 Mar 2010 04:32:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=702#comment-223</guid>
		<description>@inversechi

Sounds great, It would also help if you can share the link of that plugin. I myself have moved to CI and would love to use that plugin.</description>
		<content:encoded><![CDATA[<p>@inversechi</p>
<p>Sounds great, It would also help if you can share the link of that plugin. I myself have moved to CI and would love to use that plugin.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

