<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Code The World — Validate Image Dimension]]></title>
		<link>https://codetheworld.com/viewtopic.php?id=2</link>
		<atom:link href="https://codetheworld.com/extern.php?action=feed&amp;tid=2&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Validate Image Dimension.]]></description>
		<lastBuildDate>Sun, 15 Jun 2008 13:16:28 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Validate Image Dimension]]></title>
			<link>https://codetheworld.com/viewtopic.php?pid=130#p130</link>
			<description><![CDATA[<p>You can adjust the sizes like you need&nbsp; <img src="https://codetheworld.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[null@example.com (Terry)]]></author>
			<pubDate>Sun, 15 Jun 2008 13:16:28 +0000</pubDate>
			<guid>https://codetheworld.com/viewtopic.php?pid=130#p130</guid>
		</item>
		<item>
			<title><![CDATA[Re: Validate Image Dimension]]></title>
			<link>https://codetheworld.com/viewtopic.php?pid=89#p89</link>
			<description><![CDATA[<div class="quotebox"><cite>Terry wrote:</cite><blockquote><div class="codebox"><pre><code>if($width&gt;275 || $height&gt;275)
{
die(&quot;exceeded image dimension limits.&quot;);
}
?&gt;</code></pre></div></blockquote></div><p>Shouldn&#039;t it be </p><div class="codebox"><pre><code>$width&gt;100 || $height&gt;100</code></pre></div><p>considering that&#039;s what the forum avatars had to be? <img src="https://codetheworld.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[null@example.com (PurpleMonkey)]]></author>
			<pubDate>Sun, 15 Jun 2008 07:53:49 +0000</pubDate>
			<guid>https://codetheworld.com/viewtopic.php?pid=89#p89</guid>
		</item>
		<item>
			<title><![CDATA[Validate Image Dimension]]></title>
			<link>https://codetheworld.com/viewtopic.php?pid=2#p2</link>
			<description><![CDATA[<p>It&#039;s always good to check out an image&#039;s dimensions while attempting to upload to your server or database...especially if it&#039;s going to be displayed on a page that doesn&#039;t accomodate images beyond a particular size.</p><div class="codebox"><pre><code>&lt;?php

$tmpName = $_FILES[&#039;userfile&#039;][&#039;tmp_name&#039;];

list($width, $height, $type, $attr) = getimagesize($tmpName);

if($width&gt;275 || $height&gt;275)
{
die(&quot;exceeded image dimension limits.&quot;);
}

?&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Terry)]]></author>
			<pubDate>Tue, 13 Feb 2007 06:00:56 +0000</pubDate>
			<guid>https://codetheworld.com/viewtopic.php?pid=2#p2</guid>
		</item>
	</channel>
</rss>
