<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP Tutorials Code Snippets and Php Tips &#187; fclose</title>
	<atom:link href="http://readytousesolutions.com/phpblog/tag/fclose/feed/" rel="self" type="application/rss+xml" />
	<link>http://readytousesolutions.com/phpblog</link>
	<description>PHP tutorials - Examples of the most useful scripts</description>
	<lastBuildDate>Thu, 23 Sep 2010 06:54:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP Tutorial : Read file with php</title>
		<link>http://readytousesolutions.com/phpblog/php-tutorial-read-file-with-php/</link>
		<comments>http://readytousesolutions.com/phpblog/php-tutorial-read-file-with-php/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 07:32:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Basic PHP]]></category>
		<category><![CDATA[fclose]]></category>
		<category><![CDATA[fopen]]></category>
		<category><![CDATA[fread]]></category>
		<category><![CDATA[php fread]]></category>
		<category><![CDATA[php read]]></category>
		<category><![CDATA[php text read]]></category>
		<category><![CDATA[read file with php]]></category>
		<category><![CDATA[read php]]></category>

		<guid isPermaLink="false">http://www.crivionweb.com/phpblog/?p=138</guid>
		<description><![CDATA[Reading the contents of a file with php is made via read php fread() function. Additionally we need to use other to functions for opening the file called fopen() and to close it with fclose(). PS : the f from &#8230; <a href="http://readytousesolutions.com/phpblog/php-tutorial-read-file-with-php/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Reading the contents of a file with php is made via read php fread() function. Additionally we need to use other to functions for opening the file called fopen() and to close it with fclose(). PS : the f from the front of the functions comes from File. Here is an example of usage :</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
$textFiletoRead <span class="phpOperator">=</span> <span class="phpString">"readFromThis<span class="phpOperator">.</span>txt"</span><span class="phpText">;</span>
$openTheFile <span class="phpOperator">=</span> <span class="phpFunction">fopen</span><span class="phpOperator">(</span>$textFileToRead, <span class="phpString">'r'</span><span class="phpOperator">)</span><span class="phpText">;</span>
$sizeOf <span class="phpOperator">=</span> <span class="phpFunction">filesize</span><span class="phpOperator">(</span>$textFiletoRead<span class="phpOperator">)</span><span class="phpText">;</span>
$textContentsInFile <span class="phpOperator">=</span> <span class="phpFunction">fread</span><span class="phpOperator">(</span>$openTheFile, $sizeOf<span class="phpOperator">)</span><span class="phpText">;</span>
<span class="htmlText">
fcolse</span><span class="phpOperator">(</span>$textContentsInFile<span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpFunction">print</span> $textContentsInFile<span class="phpText">;</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://readytousesolutions.com/phpblog/php-tutorial-read-file-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

