<?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: Smart File Type Detection Using PHP</title>
	<atom:link href="http://designshack.co.uk/articles/php-articles/smart-file-type-detection-using-php/feed" rel="self" type="application/rss+xml" />
	<link>http://designshack.co.uk/articles/php-articles/smart-file-type-detection-using-php</link>
	<description>Inspiration, CSS Gallery &#38; Community News</description>
	<lastBuildDate>Sat, 20 Mar 2010 03:53:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Itay</title>
		<link>http://designshack.co.uk/articles/php-articles/smart-file-type-detection-using-php#comment-1675</link>
		<dc:creator>Itay</dc:creator>
		<pubDate>Sun, 22 Nov 2009 16:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.designshack.co.uk/?p=689#comment-1675</guid>
		<description>Great post, just what I was looking for regarding file types.

Thanks.</description>
		<content:encoded><![CDATA[<p>Great post, just what I was looking for regarding file types.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kishore Nallan</title>
		<link>http://designshack.co.uk/articles/php-articles/smart-file-type-detection-using-php#comment-886</link>
		<dc:creator>Kishore Nallan</dc:creator>
		<pubDate>Sat, 21 Mar 2009 13:19:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.designshack.co.uk/?p=689#comment-886</guid>
		<description>@Alex: Thanks for that, typo fixed!</description>
		<content:encoded><![CDATA[<p>@Alex: Thanks for that, typo fixed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://designshack.co.uk/articles/php-articles/smart-file-type-detection-using-php#comment-831</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 10 Mar 2009 14:30:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.designshack.co.uk/?p=689#comment-831</guid>
		<description>Not sure if this is typo or not (not the most knowledgeable w/ PHP), but...

$tmpFile =  $_FILES[&#039;myFile&#039;][&#039;tmp_name&#039;];  // path of the temp file created by PHP during upload
$imginfo_array = getimagesize($tempFile);   // returns a false if not a valid image file

getimagesize uses &quot;tempFile&quot; as its argument, while &quot;tmpFile&quot; was initialized above.  Shouldn&#039;t getimagesize use &quot;tmpFile&quot;?</description>
		<content:encoded><![CDATA[<p>Not sure if this is typo or not (not the most knowledgeable w/ PHP), but&#8230;</p>
<p>$tmpFile =  $_FILES['myFile']['tmp_name'];  // path of the temp file created by PHP during upload<br />
$imginfo_array = getimagesize($tempFile);   // returns a false if not a valid image file</p>
<p>getimagesize uses &#8220;tempFile&#8221; as its argument, while &#8220;tmpFile&#8221; was initialized above.  Shouldn&#8217;t getimagesize use &#8220;tmpFile&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Developer</title>
		<link>http://designshack.co.uk/articles/php-articles/smart-file-type-detection-using-php#comment-739</link>
		<dc:creator>Developer</dc:creator>
		<pubDate>Mon, 02 Mar 2009 05:59:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.designshack.co.uk/?p=689#comment-739</guid>
		<description>Really nice article..
It shows the depth of the knowledge.. 

Thanks a lot</description>
		<content:encoded><![CDATA[<p>Really nice article..<br />
It shows the depth of the knowledge.. </p>
<p>Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul-H</title>
		<link>http://designshack.co.uk/articles/php-articles/smart-file-type-detection-using-php#comment-659</link>
		<dc:creator>Paul-H</dc:creator>
		<pubDate>Mon, 23 Feb 2009 14:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.designshack.co.uk/?p=689#comment-659</guid>
		<description>Useful tutorial in fact. Thank&#039;s for all :)</description>
		<content:encoded><![CDATA[<p>Useful tutorial in fact. Thank&#8217;s for all :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pliggs</title>
		<link>http://designshack.co.uk/articles/php-articles/smart-file-type-detection-using-php#comment-646</link>
		<dc:creator>Pliggs</dc:creator>
		<pubDate>Sat, 21 Feb 2009 14:35:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.designshack.co.uk/?p=689#comment-646</guid>
		<description>This is great, I am looking for a snippet like this to ensure that the uploads are images for an upcoming project, this may do the trick nicely.

Thanks.</description>
		<content:encoded><![CDATA[<p>This is great, I am looking for a snippet like this to ensure that the uploads are images for an upcoming project, this may do the trick nicely.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: You are now listed on FAQPAL</title>
		<link>http://designshack.co.uk/articles/php-articles/smart-file-type-detection-using-php#comment-645</link>
		<dc:creator>You are now listed on FAQPAL</dc:creator>
		<pubDate>Sat, 21 Feb 2009 14:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.designshack.co.uk/?p=689#comment-645</guid>
		<description>&lt;strong&gt;Smart File Type Detection Using PHP...&lt;/strong&gt;

Using PHP to detect file types when allowing uploads on your website....</description>
		<content:encoded><![CDATA[<p><strong>Smart File Type Detection Using PHP&#8230;</strong></p>
<p>Using PHP to detect file types when allowing uploads on your website&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://designshack.co.uk/articles/php-articles/smart-file-type-detection-using-php#comment-620</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Thu, 19 Feb 2009 09:29:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.designshack.co.uk/?p=689#comment-620</guid>
		<description>Useful tutorial...nice and clear with code thanks.</description>
		<content:encoded><![CDATA[<p>Useful tutorial&#8230;nice and clear with code thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yang Yang</title>
		<link>http://designshack.co.uk/articles/php-articles/smart-file-type-detection-using-php#comment-572</link>
		<dc:creator>Yang Yang</dc:creator>
		<pubDate>Fri, 13 Feb 2009 10:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.designshack.co.uk/?p=689#comment-572</guid>
		<description>For images, a simpler way might be using getimagesize() which returns an array containing the mime type of the image.</description>
		<content:encoded><![CDATA[<p>For images, a simpler way might be using getimagesize() which returns an array containing the mime type of the image.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
