<?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: PHP best way to check if file is an image	</title>
	<atom:link href="https://www.binarytides.com/php-check-if-file-is-an-image/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.binarytides.com/php-check-if-file-is-an-image/</link>
	<description>News, Technology, Entertainment and more</description>
	<lastBuildDate>Mon, 16 Sep 2019 09:50:36 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: Deer-door		</title>
		<link>https://www.binarytides.com/php-check-if-file-is-an-image/comment-page-1/#comment-209039</link>

		<dc:creator><![CDATA[Deer-door]]></dc:creator>
		<pubDate>Mon, 16 Sep 2019 09:50:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=588#comment-209039</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/php-check-if-file-is-an-image/comment-page-1/#comment-65209&quot;&gt;f00&lt;/a&gt;.

Link format is outdated, here is actual one:
https://www.binarytides.com/suppress-errors-warnings-with-operator-in-php/]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/php-check-if-file-is-an-image/comment-page-1/#comment-65209">f00</a>.</p>
<p>Link format is outdated, here is actual one:<br />
<a href="https://www.binarytides.com/suppress-errors-warnings-with-operator-in-php/" rel="ugc">https://www.binarytides.com/suppress-errors-warnings-with-operator-in-php/</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vladimir		</title>
		<link>https://www.binarytides.com/php-check-if-file-is-an-image/comment-page-1/#comment-146994</link>

		<dc:creator><![CDATA[Vladimir]]></dc:creator>
		<pubDate>Thu, 14 Dec 2017 17:31:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=588#comment-146994</guid>

					<description><![CDATA[Link: &quot;http://php.net/manual/en/function.getimagesize.php&quot;.
Quote: &quot;Do not use getimagesize() to check that a given file is a valid image. Use a purpose-built solution such as the Fileinfo extension instead&quot;.
Link to description of that extension: &quot;http://php.net/manual/ru/book.fileinfo.php&quot;.]]></description>
			<content:encoded><![CDATA[<p>Link: &#8220;http://php.net/manual/en/function.getimagesize.php&#8221;.<br />
Quote: &#8220;Do not use getimagesize() to check that a given file is a valid image. Use a purpose-built solution such as the Fileinfo extension instead&#8221;.<br />
Link to description of that extension: &#8220;http://php.net/manual/ru/book.fileinfo.php&#8221;.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ADVISORY		</title>
		<link>https://www.binarytides.com/php-check-if-file-is-an-image/comment-page-1/#comment-125019</link>

		<dc:creator><![CDATA[ADVISORY]]></dc:creator>
		<pubDate>Thu, 27 Jul 2017 09:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=588#comment-125019</guid>

					<description><![CDATA[PHP&#039;s official docs recommend against using getimagesize function for checking if the file is actually an image.
See: http://php.net/getimagesize]]></description>
			<content:encoded><![CDATA[<p>PHP&#8217;s official docs recommend against using getimagesize function for checking if the file is actually an image.<br />
See: <a href="http://php.net/getimagesize" rel="nofollow ugc">http://php.net/getimagesize</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Prodoxx Thedarklord		</title>
		<link>https://www.binarytides.com/php-check-if-file-is-an-image/comment-page-1/#comment-65211</link>

		<dc:creator><![CDATA[Prodoxx Thedarklord]]></dc:creator>
		<pubDate>Wed, 13 Feb 2013 01:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=588#comment-65211</guid>

					<description><![CDATA[Thank You :D]]></description>
			<content:encoded><![CDATA[<p>Thank You :D</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tristram Shorter		</title>
		<link>https://www.binarytides.com/php-check-if-file-is-an-image/comment-page-1/#comment-65210</link>

		<dc:creator><![CDATA[Tristram Shorter]]></dc:creator>
		<pubDate>Thu, 29 Mar 2012 16:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=588#comment-65210</guid>

					<description><![CDATA[Hey, this is a really good solution. I spent ages looking for a decent function in the php manual, but this really solves my problem!
Thanks a lot!
Tristram]]></description>
			<content:encoded><![CDATA[<p>Hey, this is a really good solution. I spent ages looking for a decent function in the php manual, but this really solves my problem!<br />
Thanks a lot!<br />
Tristram</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: f00		</title>
		<link>https://www.binarytides.com/php-check-if-file-is-an-image/comment-page-1/#comment-65209</link>

		<dc:creator><![CDATA[f00]]></dc:creator>
		<pubDate>Sun, 06 Nov 2011 11:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=588#comment-65209</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/php-check-if-file-is-an-image/comment-page-1/#comment-65208&quot;&gt;coder&lt;/a&gt;.

I do not recommend using @ operator to suppress errors in PHP. Read http://www.binarytides.com/blog/suppressing-errors-warnings-with-operator-in-php/ for more info.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/php-check-if-file-is-an-image/comment-page-1/#comment-65208">coder</a>.</p>
<p>I do not recommend using @ operator to suppress errors in PHP. Read <a href="http://www.binarytides.com/blog/suppressing-errors-warnings-with-operator-in-php/" rel="ugc">http://www.binarytides.com/blog/suppressing-errors-warnings-with-operator-in-php/</a> for more info.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: coder		</title>
		<link>https://www.binarytides.com/php-check-if-file-is-an-image/comment-page-1/#comment-65208</link>

		<dc:creator><![CDATA[coder]]></dc:creator>
		<pubDate>Sun, 06 Nov 2011 00:45:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=588#comment-65208</guid>

					<description><![CDATA[it&#039;s really helpfull !

i simply added &quot;@&quot; before the getimagesize to prevent php outputing error messages on screen if it fails getting image size :
$a = @getimagesize($path);

Thanx :D]]></description>
			<content:encoded><![CDATA[<p>it&#8217;s really helpfull !</p>
<p>i simply added &#8220;@&#8221; before the getimagesize to prevent php outputing error messages on screen if it fails getting image size :<br />
$a = @getimagesize($path);</p>
<p>Thanx :D</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
