
<?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 Upload files with PHP</title>
	<atom:link href="http://www.martin-gardner.co.uk/how-to-upload-files-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.martin-gardner.co.uk/how-to-upload-files-with-php/</link>
	<description>Technology - Gadgets - Programing - Gaming - Reviews - Tutorials</description>
	<lastBuildDate>Sun, 07 Mar 2010 20:13:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: make windows xp run faster</title>
		<link>http://www.martin-gardner.co.uk/how-to-upload-files-with-php/comment-page-1/#comment-3106</link>
		<dc:creator>make windows xp run faster</dc:creator>
		<pubDate>Mon, 20 Jul 2009 18:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.martin-gardner.co.uk/?p=32#comment-3106</guid>
		<description>I found your blog on google and read a few of your other posts. I just added you to my Google News Reader. Keep up the good work. Look forward to reading more from you in the future.</description>
		<content:encoded><![CDATA[<p>I found your blog on google and read a few of your other posts. I just added you to my Google News Reader. Keep up the good work. Look forward to reading more from you in the future.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: haifafans</title>
		<link>http://www.martin-gardner.co.uk/how-to-upload-files-with-php/comment-page-1/#comment-863</link>
		<dc:creator>haifafans</dc:creator>
		<pubDate>Sun, 28 Dec 2008 16:42:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.martin-gardner.co.uk/?p=32#comment-863</guid>
		<description>cool i like it :D
i will use it :D</description>
		<content:encoded><![CDATA[<p>cool i like it :D<br />
i will use it :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.martin-gardner.co.uk/how-to-upload-files-with-php/comment-page-1/#comment-857</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Thu, 25 Dec 2008 03:43:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.martin-gardner.co.uk/?p=32#comment-857</guid>
		<description>Just a note, as far as I cant tell PHP 5 isn&#039;t required to run this code, it ought to work on PHP 4.x too.</description>
		<content:encoded><![CDATA[<p>Just a note, as far as I cant tell PHP 5 isn&#8217;t required to run this code, it ought to work on PHP 4.x too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marty</title>
		<link>http://www.martin-gardner.co.uk/how-to-upload-files-with-php/comment-page-1/#comment-818</link>
		<dc:creator>marty</dc:creator>
		<pubDate>Mon, 15 Dec 2008 01:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.martin-gardner.co.uk/?p=32#comment-818</guid>
		<description>Hi Jad,
this would really depend on your web host, 
what you can do is create a new php page, 
copy this code into you page 

phpinfo();

open it in your browser and look for this &quot;upload_max_filesize&quot; without the Quotes and it will tell you..</description>
		<content:encoded><![CDATA[<p>Hi Jad,<br />
this would really depend on your web host,<br />
what you can do is create a new php page,<br />
copy this code into you page </p>
<p>phpinfo();</p>
<p>open it in your browser and look for this &#8220;upload_max_filesize&#8221; without the Quotes and it will tell you..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jad</title>
		<link>http://www.martin-gardner.co.uk/how-to-upload-files-with-php/comment-page-1/#comment-817</link>
		<dc:creator>Jad</dc:creator>
		<pubDate>Mon, 15 Dec 2008 00:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.martin-gardner.co.uk/?p=32#comment-817</guid>
		<description>its nice but the upload size limit is only 5 mb right?</description>
		<content:encoded><![CDATA[<p>its nice but the upload size limit is only 5 mb right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erica</title>
		<link>http://www.martin-gardner.co.uk/how-to-upload-files-with-php/comment-page-1/#comment-419</link>
		<dc:creator>Erica</dc:creator>
		<pubDate>Tue, 14 Oct 2008 18:50:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.martin-gardner.co.uk/?p=32#comment-419</guid>
		<description>
	Select File: 
	


</description>
		<content:encoded><![CDATA[<p>Select File:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew</title>
		<link>http://www.martin-gardner.co.uk/how-to-upload-files-with-php/comment-page-1/#comment-17</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Sun, 29 Jun 2008 15:33:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.martin-gardner.co.uk/?p=32#comment-17</guid>
		<description>He wasn&#039;t referring to the exclamation point operator, he was referring to the single equal sign in the if statement.

You *need* double equals signs (&quot;==&quot;) otherwise you are telling php what a variable is supposed to hold in a string, integer, etc... Unless you need boolean support, then you use three equals signs (&quot;===&quot;).

So you were right about the exclamation point, but you needed to equals signs so it says &quot;If file name isn&#039;t equal to nothing&quot;.

An easier and faster way to go about doing it could also be this--

if(is_empty($file_name)){
    doThis();
}

You can contact me if by the email address I used if you have any questions about what I&#039;ve said. I&#039;ve just woken up so I&#039;m not sure how clear I&#039;m being.

Matt</description>
		<content:encoded><![CDATA[<p>He wasn&#8217;t referring to the exclamation point operator, he was referring to the single equal sign in the if statement.</p>
<p>You *need* double equals signs (&#8220;==&#8221;) otherwise you are telling php what a variable is supposed to hold in a string, integer, etc&#8230; Unless you need boolean support, then you use three equals signs (&#8220;===&#8221;).</p>
<p>So you were right about the exclamation point, but you needed to equals signs so it says &#8220;If file name isn&#8217;t equal to nothing&#8221;.</p>
<p>An easier and faster way to go about doing it could also be this&#8211;</p>
<p>if(is_empty($file_name)){<br />
    doThis();<br />
}</p>
<p>You can contact me if by the email address I used if you have any questions about what I&#8217;ve said. I&#8217;ve just woken up so I&#8217;m not sure how clear I&#8217;m being.</p>
<p>Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://www.martin-gardner.co.uk/how-to-upload-files-with-php/comment-page-1/#comment-15</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Sat, 28 Jun 2008 12:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.martin-gardner.co.uk/?p=32#comment-15</guid>
		<description>maybe you should get some sleep then. lols</description>
		<content:encoded><![CDATA[<p>maybe you should get some sleep then. lols</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cthulhu</title>
		<link>http://www.martin-gardner.co.uk/how-to-upload-files-with-php/comment-page-1/#comment-14</link>
		<dc:creator>Cthulhu</dc:creator>
		<pubDate>Sat, 28 Jun 2008 08:43:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.martin-gardner.co.uk/?p=32#comment-14</guid>
		<description>You could just pop out of PHP to display your HTML code instead of using the echo function to display 10 lines of the stuff.

//blahblah
else {
?&gt;

&lt;?php
// the rest</description>
		<content:encoded><![CDATA[<p>You could just pop out of PHP to display your HTML code instead of using the echo function to display 10 lines of the stuff.</p>
<p>//blahblah<br />
else {<br />
?&gt;</p>
<p>&lt;?php<br />
// the rest</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marty</title>
		<link>http://www.martin-gardner.co.uk/how-to-upload-files-with-php/comment-page-1/#comment-13</link>
		<dc:creator>marty</dc:creator>
		<pubDate>Fri, 27 Jun 2008 22:44:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.martin-gardner.co.uk/?p=32#comment-13</guid>
		<description>its all good.

after so long looking at code, i often do this.</description>
		<content:encoded><![CDATA[<p>its all good.</p>
<p>after so long looking at code, i often do this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
