<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Working Beta &#187; thumbnail generation</title>
	<atom:link href="http://seeds.workingbeta.com/tag/thumbnail-generation/feed/" rel="self" type="application/rss+xml" />
	<link>http://seeds.workingbeta.com</link>
	<description>a bounch of nearly working code</description>
	<lastBuildDate>Wed, 10 Feb 2010 21:25:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>managing [many] uploaded files</title>
		<link>http://seeds.workingbeta.com/2008/12/11/managing-many-uploaded-files/</link>
		<comments>http://seeds.workingbeta.com/2008/12/11/managing-many-uploaded-files/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 22:44:10 +0000</pubDate>
		<dc:creator>gc</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[file upload]]></category>
		<category><![CDATA[multimedia]]></category>
		<category><![CDATA[thumbnail generation]]></category>

		<guid isPermaLink="false">http://seeds.workingbeta.com/?p=43</guid>
		<description><![CDATA[most  web applications have to deal with user provided files. Being them photos, word files, compressed archives, the big problem is what can happen when they become to be so many that become to reach the system limits of your filesystem.
Just think about sites like myspace, hacebook, flikr: they must provide upload features for [...]]]></description>
			<content:encoded><![CDATA[<p>most  web applications have to deal with user provided files. Being them photos, word files, compressed archives, the big problem is what can happen when they become to be so many that become to reach the system limits of your filesystem.<br />
Just think about sites like myspace, hacebook, flikr: they must provide upload features for millions of files/day and every each node of their webfarm cluser should be able to get it in milliseconds.<br />
The solution I usually provide in such case, creates a n-levels of directoryes  generating a unique 32-chars wide filename foreach file uploaded and then storing it. this method can fulfill the usual requirements for a medium sized high traffic application, and can store millions of files with no fear for performances.<br />
Each file can be retrieved with a simple numeric ID or a supersecret 32bit key adding security or applications requiring privacy protection.<br />
Also ther&#8217;s thumbnail generating method with caching mechanism if eeded.</p>
<p><a href="http://www.workingbeta.com/seeds/class.multimedia.php.zip">here</a> you can find it: too much code to explain, but if you don&#8217;t understand something, let me know</p>
]]></content:encoded>
			<wfw:commentRss>http://seeds.workingbeta.com/2008/12/11/managing-many-uploaded-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
