<?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: How to read a file into a string using PHP</title>
	<atom:link href="http://www.leggetter.co.uk/2009/02/28/how-to-read-a-file-into-a-string-using-php.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.leggetter.co.uk/2009/02/28/how-to-read-a-file-into-a-string-using-php.html</link>
	<description>Real-Time Web, Real-Time Data and Social Media Software and Technology Evangelist and Consultant</description>
	<lastBuildDate>Fri, 27 Jan 2012 15:26:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Andrea Giammarchi</title>
		<link>http://www.leggetter.co.uk/2009/02/28/how-to-read-a-file-into-a-string-using-php.html/comment-page-1#comment-2544</link>
		<dc:creator>Andrea Giammarchi</dc:creator>
		<pubDate>Sat, 27 Jun 2009 11:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.leggetter.co.uk/?p=163#comment-2544</guid>
		<description>&lt;a href=&quot;http://uk3.php.net/manual/en/function.file-get-contents.php&quot; rel=&quot;nofollow&quot;&gt;file_get_contents&lt;/a&gt;, which is binary content safe ( &quot;rb&quot; as fopen flag otherwise ) is the &quot;evolution&quot; and
&lt;pre name=&quot;code&quot; class=&quot;php&quot;&gt;
if(!function_exists(&#039;file_get_contents&#039;))
{
    function file_get_contents($s)
    {
        $r=fread($f=fopen($s,&#039;rb&#039;),filesize($s));
        fclose($f);
        return $r;
    }
}
&lt;/pre&gt; the natural fallback for 5 years older PHP installations ;-)

See you on Monday mate, so far we are apparently only two Web 2.0 developers in the list! Regards</description>
		<content:encoded><![CDATA[<p><a  href="http://uk3.php.net/manual/en/function.file-get-contents.php" rel="nofollow">file_get_contents</a>, which is binary content safe ( &#8220;rb&#8221; as fopen flag otherwise ) is the &#8220;evolution&#8221; and</p>
<pre name="code" class="php">
if(!function_exists('file_get_contents'))
{
    function file_get_contents($s)
    {
        $r=fread($f=fopen($s,'rb'),filesize($s));
        fclose($f);
        return $r;
    }
}
</pre>
<p> the natural fallback for 5 years older PHP installations <img src='http://www.leggetter.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>See you on Monday mate, so far we are apparently only two Web 2.0 developers in the list! Regards</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 15/24 queries in 0.015 seconds using disk: basic

Served from: www.leggetter.co.uk @ 2012-02-07 10:57:03 -->
