<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: A beginners introduction to PHP’s file functions</title>
	<link>http://phpit.net/article/beginners-introduction-php-file-functions/</link>
	<description>PHPit has dozens of PHP articles, codesnippets and FAQ's.</description>
	<pubDate>Sun, 03 Aug 2008 19:13:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: great posts</title>
		<link>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-1657</link>
		<pubDate>Wed, 10 May 2006 06:48:52 +0000</pubDate>
		<guid>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-1657</guid>
					<description>how about.. reading from a .csv file on one server, and writing to a new .csv file on another?

Copy doesnt seem to work for me.</description>
		<content:encoded><![CDATA[<p>how about.. reading from a .csv file on one server, and writing to a new .csv file on another?</p>
<p>Copy doesnt seem to work for me.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Joseph</title>
		<link>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-960</link>
		<pubDate>Mon, 27 Mar 2006 22:16:12 +0000</pubDate>
		<guid>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-960</guid>
					<description>In your second example, you have:

$file = 'G:\projects\phpinfo.php';

However, I have not been able to use PHP to load a PHP file, since, I assume, apache is trying to run the contents of $file as php code.

How do you load a PHP file from PHP and actually be able to print the $file variable as text, which includes the  without it trying to execute the PHP script.</description>
		<content:encoded><![CDATA[<p>In your second example, you have:</p>
<p>$file = &#8216;G:\projects\phpinfo.php&#8217;;</p>
<p>However, I have not been able to use PHP to load a PHP file, since, I assume, apache is trying to run the contents of $file as php code.</p>
<p>How do you load a PHP file from PHP and actually be able to print the $file variable as text, which includes the  without it trying to execute the PHP script.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: mel</title>
		<link>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-728</link>
		<pubDate>Tue, 14 Mar 2006 06:46:55 +0000</pubDate>
		<guid>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-728</guid>
					<description>I found a way to make a flat file not be ever read by a website. It is pretty simple and I wanted some feedback. Mind you, I am a n00b at php. So all comments are welcome!

here is the code:
function acc($name, $ip, $ref, $acc_time, $store) {
  $fi = "users.php";

  if ($store ";
    $g = fopen($fi,'a') or die ("Could not open admin file");
    $fp = fwrite($g, $data);
  }
    if ($store &#62; 100) {
    // delete records

    $data = "";
    $g = fopen($fi,'w') or die ("Could not open admin file");
    $fp = fwrite($g, $data);
    }
}</description>
		<content:encoded><![CDATA[<p>I found a way to make a flat file not be ever read by a website. It is pretty simple and I wanted some feedback. Mind you, I am a n00b at php. So all comments are welcome!</p>
<p>here is the code:<br />
function acc($name, $ip, $ref, $acc_time, $store) {<br />
  $fi = &#8220;users.php&#8221;;</p>
<p>  if ($store &#8220;;<br />
    $g = fopen($fi,&#8217;a') or die (&#8221;Could not open admin file&#8221;);<br />
    $fp = fwrite($g, $data);<br />
  }<br />
    if ($store &gt; 100) {<br />
    // delete records</p>
<p>    $data = &#8220;&#8221;;<br />
    $g = fopen($fi,&#8217;w') or die (&#8221;Could not open admin file&#8221;);<br />
    $fp = fwrite($g, $data);<br />
    }<br />
}
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Bzh</title>
		<link>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-617</link>
		<pubDate>Fri, 17 Feb 2006 17:57:04 +0000</pubDate>
		<guid>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-617</guid>
					<description>I'm french and i like very much your aticles !
It's the second article that i read and it's also interresting !

On Linux platform, flock() is not useful ! flock() is importance only on a Windows platform...

Thank you for assistance...

Bye...</description>
		<content:encoded><![CDATA[<p>I&#8217;m french and i like very much your aticles !<br />
It&#8217;s the second article that i read and it&#8217;s also interresting !</p>
<p>On Linux platform, flock() is not useful ! flock() is importance only on a Windows platform&#8230;</p>
<p>Thank you for assistance&#8230;</p>
<p>Bye&#8230;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke</title>
		<link>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-600</link>
		<pubDate>Tue, 14 Feb 2006 17:59:11 +0000</pubDate>
		<guid>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-600</guid>
					<description>A print view for the articles on this site would be very helpful.</description>
		<content:encoded><![CDATA[<p>A print view for the articles on this site would be very helpful.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Matthijs</title>
		<link>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-598</link>
		<pubDate>Tue, 14 Feb 2006 11:31:55 +0000</pubDate>
		<guid>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-598</guid>
					<description>Nice article Dennis. Gives a good overview of the filesystem functions. The fact that you also explain when to use certain functions and when not (php versions) and why or why not to use some functions is very valuable. That's something I often miss when I read articles. Just reading what a certain function does is what the manual is for. Reading why, how and when to use functions is what adds value. Thanks.</description>
		<content:encoded><![CDATA[<p>Nice article Dennis. Gives a good overview of the filesystem functions. The fact that you also explain when to use certain functions and when not (php versions) and why or why not to use some functions is very valuable. That&#8217;s something I often miss when I read articles. Just reading what a certain function does is what the manual is for. Reading why, how and when to use functions is what adds value. Thanks.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Dávur Eyðunsson Sørensen</title>
		<link>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-596</link>
		<pubDate>Mon, 13 Feb 2006 09:33:11 +0000</pubDate>
		<guid>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-596</guid>
					<description>Excellent tutorial! But since you at the end of the text boldly declare
[quote]
'I've discussed every important one ( meaning filesystem functions)'
[end quote]

I certainly would have appreciated it more if it had included at least a hint at the importance of locking your files, using flock() -http://www.php.net/flock) while reading/writing. 

Anyway, it is still a great tutorial. Keep up the good work; I read all your stuff ;)</description>
		<content:encoded><![CDATA[<p>Excellent tutorial! But since you at the end of the text boldly declare<br />
[quote]<br />
&#8216;I&#8217;ve discussed every important one ( meaning filesystem functions)&#8217;<br />
[end quote]</p>
<p>I certainly would have appreciated it more if it had included at least a hint at the importance of locking your files, using flock() -http://www.php.net/flock) while reading/writing. </p>
<p>Anyway, it is still a great tutorial. Keep up the good work; I read all your stuff ;)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: bhai</title>
		<link>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-595</link>
		<pubDate>Mon, 13 Feb 2006 08:19:53 +0000</pubDate>
		<guid>http://phpit.net/article/beginners-introduction-php-file-functions/#comment-595</guid>
					<description>Yourr site is not bad .plz send me the project in php which is  related to database like as any managing thing</description>
		<content:encoded><![CDATA[<p>Yourr site is not bad .plz send me the project in php which is  related to database like as any managing thing
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
