<?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 for TutToaster</title>
	<atom:link href="http://www.tuttoaster.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tuttoaster.com</link>
	<description>Freshly Toasted for You!</description>
	<lastBuildDate>Tue, 07 Sep 2010 04:30:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Comment on Create a Camera Application in Flash Using ActionScript 3 by james</title>
		<link>http://www.tuttoaster.com/create-a-camera-application-in-flash-using-actionscript-3/#comment-7155</link>
		<dc:creator>james</dc:creator>
		<pubDate>Tue, 07 Sep 2010 04:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=4411#comment-7155</guid>
		<description>Oh I&#039;m sorry.. what I mean is, is there a way to automatically save a file to a directory instead of asking it? Thanks.</description>
		<content:encoded><![CDATA[<p>Oh I&#8217;m sorry.. what I mean is, is there a way to automatically save a file to a directory instead of asking it? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Create a Camera Application in Flash Using ActionScript 3 by james</title>
		<link>http://www.tuttoaster.com/create-a-camera-application-in-flash-using-actionscript-3/#comment-7154</link>
		<dc:creator>james</dc:creator>
		<pubDate>Tue, 07 Sep 2010 04:27:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=4411#comment-7154</guid>
		<description>Can I ask where does the images being saved by the FileReference.save function? Thanks</description>
		<content:encoded><![CDATA[<p>Can I ask where does the images being saved by the FileReference.save function? Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating a Upload/Download System Using PHP Classes by Cody Robertson</title>
		<link>http://www.tuttoaster.com/creating-a-uploaddownload-system-using-php-classes/#comment-6847</link>
		<dc:creator>Cody Robertson</dc:creator>
		<pubDate>Sun, 05 Sep 2010 06:48:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=4590#comment-6847</guid>
		<description>@Tutorial City,

You have some good points, which are things I would have done if I was doing this for a actualy system, but I am not. 

This code was crafted for the soul purpose of introducing very basic OOP PHP and working with files in PHP. This is in no way a advanced tutorial.

Now to your points:
1) This would be good if I was doing more with the file in a advanced system, but since In this tutorial I am just moving it then I am done with it there is no need to do that.

2) This, now that I look back, I probably should have done. I think I looked at the size my server allows and put it there. Your right on that part.

3) I did the printing out information so the code would mimic the design, again, for the sake of the tutorial.

Hope this clear some things up, writing code for tutorials will never be the same as writing code for actual applications. Close, but not the same.

Cody.</description>
		<content:encoded><![CDATA[<p>@Tutorial City,</p>
<p>You have some good points, which are things I would have done if I was doing this for a actualy system, but I am not. </p>
<p>This code was crafted for the soul purpose of introducing very basic OOP PHP and working with files in PHP. This is in no way a advanced tutorial.</p>
<p>Now to your points:<br />
1) This would be good if I was doing more with the file in a advanced system, but since In this tutorial I am just moving it then I am done with it there is no need to do that.</p>
<p>2) This, now that I look back, I probably should have done. I think I looked at the size my server allows and put it there. Your right on that part.</p>
<p>3) I did the printing out information so the code would mimic the design, again, for the sake of the tutorial.</p>
<p>Hope this clear some things up, writing code for tutorials will never be the same as writing code for actual applications. Close, but not the same.</p>
<p>Cody.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web and Graphic Designers from the Netherlands by Benke</title>
		<link>http://www.tuttoaster.com/web-and-graphic-designers-from-the-netherlands/#comment-6802</link>
		<dc:creator>Benke</dc:creator>
		<pubDate>Sat, 04 Sep 2010 22:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=6889#comment-6802</guid>
		<description>Awesome! Some designs are really slick and clean. Hopefully there will be more articles about my home country.</description>
		<content:encoded><![CDATA[<p>Awesome! Some designs are really slick and clean. Hopefully there will be more articles about my home country.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating a Upload/Download System Using PHP Classes by Tutorial City</title>
		<link>http://www.tuttoaster.com/creating-a-uploaddownload-system-using-php-classes/#comment-6706</link>
		<dc:creator>Tutorial City</dc:creator>
		<pubDate>Sat, 04 Sep 2010 05:25:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=4590#comment-6706</guid>
		<description>That&#039;s true, you can upload a file in a single method call, but the class could be much easier to understand and manage, I&#039;ll give SOME points where I think the class has room for improvement.
In the &lt;code&gt;upload_file&lt;/code&gt; method:

&lt;strong&gt;1.&lt;/strong&gt; the &lt;code&gt;$file&lt;/code&gt; variable could be a property of the class (at least makes sense).
&lt;strong&gt;2.&lt;/strong&gt; there are some file checks (like &lt;em&gt;size&lt;/em&gt; and &lt;em&gt;error&lt;/em&gt;) that could be done by a protected method.
&lt;strong&gt;3.&lt;/strong&gt; at the end of the method some output is echoed, and generally it&#039;s not a good practice. I think it&#039;s better just to &lt;code&gt;return&lt;/code&gt; the output or even better to create a public method do get the final result.

These are just a few refactoring techniques that the class can implement. They&#039;re not mandatory at all, but in the same way OOP is not mandatory too.</description>
		<content:encoded><![CDATA[<p>That&#8217;s true, you can upload a file in a single method call, but the class could be much easier to understand and manage, I&#8217;ll give SOME points where I think the class has room for improvement.<br />
In the <code>upload_file</code> method:</p>
<p><strong>1.</strong> the <code>$file</code> variable could be a property of the class (at least makes sense).<br />
<strong>2.</strong> there are some file checks (like <em>size</em> and <em>error</em>) that could be done by a protected method.<br />
<strong>3.</strong> at the end of the method some output is echoed, and generally it&#8217;s not a good practice. I think it&#8217;s better just to <code>return</code> the output or even better to create a public method do get the final result.</p>
<p>These are just a few refactoring techniques that the class can implement. They&#8217;re not mandatory at all, but in the same way OOP is not mandatory too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating a Upload/Download System Using PHP Classes by Cody Robertson</title>
		<link>http://www.tuttoaster.com/creating-a-uploaddownload-system-using-php-classes/#comment-6505</link>
		<dc:creator>Cody Robertson</dc:creator>
		<pubDate>Thu, 02 Sep 2010 22:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=4590#comment-6505</guid>
		<description>Well, it depends on your current download system. Letting them execute there HTML/JavaScript/PHP files is  a horrible idea, that is why if you do it right, you can force the download and it will work good.

This is pretty secure if you handle it right.</description>
		<content:encoded><![CDATA[<p>Well, it depends on your current download system. Letting them execute there HTML/JavaScript/PHP files is  a horrible idea, that is why if you do it right, you can force the download and it will work good.</p>
<p>This is pretty secure if you handle it right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating a Upload/Download System Using PHP Classes by Pritesh</title>
		<link>http://www.tuttoaster.com/creating-a-uploaddownload-system-using-php-classes/#comment-6472</link>
		<dc:creator>Pritesh</dc:creator>
		<pubDate>Thu, 02 Sep 2010 18:16:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=4590#comment-6472</guid>
		<description>Great coincidence,
On 31 August  I managed to create my own upload website. Since I&#039;m new to programming it took me a week t figure out a good working script with php.
I&#039;ll like to try this one out.
Is it more secure as compared to simply providing a direct link to the files stored in a folder on your website?</description>
		<content:encoded><![CDATA[<p>Great coincidence,<br />
On 31 August  I managed to create my own upload website. Since I&#8217;m new to programming it took me a week t figure out a good working script with php.<br />
I&#8217;ll like to try this one out.<br />
Is it more secure as compared to simply providing a direct link to the files stored in a folder on your website?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on [CSS3] jQuery Dropdown Navigation in WordPress by Cody Robertson</title>
		<link>http://www.tuttoaster.com/jquery-dropdown-menu-in-wordpress/#comment-6375</link>
		<dc:creator>Cody Robertson</dc:creator>
		<pubDate>Thu, 02 Sep 2010 04:57:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=2756#comment-6375</guid>
		<description>All the menus should be centered exactly. Please first try and rework your code to resemble the final code and then if that doesn&#039;t work post your code.</description>
		<content:encoded><![CDATA[<p>All the menus should be centered exactly. Please first try and rework your code to resemble the final code and then if that doesn&#8217;t work post your code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating a Upload/Download System Using PHP Classes by Cody Robertson</title>
		<link>http://www.tuttoaster.com/creating-a-uploaddownload-system-using-php-classes/#comment-6356</link>
		<dc:creator>Cody Robertson</dc:creator>
		<pubDate>Thu, 02 Sep 2010 03:06:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=4590#comment-6356</guid>
		<description>Yes, maybe this was not the best example to use Object Oriented Programming is but it still does follow the objective of being able to reuse it in any location.

With this code you can use &lt;code&gt;$upload-&gt;upload_file();&lt;/code&gt; at any location in your site and you will have a working upload form. You will not have to copy and paste each function in there for it to work, which is one of the goals of Object Oriented Programming, to be able to reuse your already written code.</description>
		<content:encoded><![CDATA[<p>Yes, maybe this was not the best example to use Object Oriented Programming is but it still does follow the objective of being able to reuse it in any location.</p>
<p>With this code you can use <code>$upload-&gt;upload_file();</code> at any location in your site and you will have a working upload form. You will not have to copy and paste each function in there for it to work, which is one of the goals of Object Oriented Programming, to be able to reuse your already written code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating a Upload/Download System Using PHP Classes by Cody Robertson</title>
		<link>http://www.tuttoaster.com/creating-a-uploaddownload-system-using-php-classes/#comment-6355</link>
		<dc:creator>Cody Robertson</dc:creator>
		<pubDate>Thu, 02 Sep 2010 03:03:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=4590#comment-6355</guid>
		<description>I have always used &lt;code&gt;readfile&lt;/code&gt; in these situations, I have herd of &lt;code&gt;fpassthru&lt;/code&gt; and after reading a bit more about it I have come to the conclusion that with both functions you can get the same functionality in the end. 

One of the differences I noticed was that when using &lt;code&gt;fopen&lt;/code&gt; to open the socket that you need to set it in binary mode by appending a &quot;b&quot; example:
&lt;code&gt;$fp = fopen(&#039;filename.file&#039;, &#039;r&lt;b&gt;b&lt;/b&gt;&#039;);&lt;/code&gt;

Hope this helps.</description>
		<content:encoded><![CDATA[<p>I have always used <code>readfile</code> in these situations, I have herd of <code>fpassthru</code> and after reading a bit more about it I have come to the conclusion that with both functions you can get the same functionality in the end. </p>
<p>One of the differences I noticed was that when using <code>fopen</code> to open the socket that you need to set it in binary mode by appending a &#8220;b&#8221; example:<br />
<code>$fp = fopen('filename.file', 'r<b>b</b>');</code></p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 2/9 queries in 0.008 seconds using disk

Served from: www.tuttoaster.com @ 2010-09-08 00:37:35 -->