<?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>iBlog random &#187; file</title>
	<atom:link href="http://blog.zurka.us/tag/file/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zurka.us</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 28 May 2013 20:28:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6</generator>
		<item>
		<title>Format file sizes with PHP</title>
		<link>http://blog.zurka.us/format-file-sizes-with-php/</link>
		<comments>http://blog.zurka.us/format-file-sizes-with-php/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 11:55:16 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[size]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=634</guid>
		<description><![CDATA[A simple script that formats the number ob bytes of a file to kb, mb, gb or tb. function mksize($bytes) { if ($bytes &#60; 1000 * 1024) return number_format($bytes / 1024, 2) . &#34; KB&#34;; elseif ($bytes &#60; 1000 * 1048576) return number_format($bytes / 1048576, 2) . &#34; MB&#34;; elseif ($bytes &#60; 1000 * 1073741824) [&#8230;]]]></description>
				<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;" class="linksalpha_widget">
											<iframe
												style="height:25px !important; border:0px solid gray !important; overflow:hidden !important; width:550px !important;" frameborder="0" scrolling="no" allowTransparency="true"
												src="http://www.linksalpha.com/social?blog=iBlog+random&link=http%3A%2F%2Fblog.zurka.us%2Fformat-file-sizes-with-php%2F&title=Format+file+sizes+with+PHP&desc=A+simple+script+that+formats+the+number+ob+bytes+of+a+file+to+kb%2C+mb%2C+gb+or+tb.+function+mksize%28%24bytes%29+%7B+if+%28%24bytes+%26lt%3B+1000+%2A+1024%29+return+number_format%28%24bytes+%2F+1024%2C+2%29+.+%26quot%3B+KB%26quot%3B%3B+elseif+%28%24bytes+%26lt%3B+1000+%2A+1048576%29+return+number_format%28%24bytes+%2F+1048576%2C+2%29+.+%26quot%3B+MB%26quot%3B%3B+elseif+%28%24bytes+%26lt%3B+1000+%2A+1073741824%29&fc=333333&fs=arial&fblname=like&fblref=facebook&fbllang=en_US&fblshow=1&fbsbutton=1&fbsctr=1&fbslang=en&fbsendbutton=1&twbutton=1&twlang=en&twmention=&twrelated1=&twrelated2=&twctr=1&lnkdshow=noshow&lnkdctr=1&buzzbutton=1&buzzlang=en&buzzctr=1&diggbutton=1&diggctr=1&stblbutton=1&stblctr=1&g1button=1&g1ctr=1&g1lang=en-US">
											</iframe>
										</div><p>A simple script that formats the number ob bytes of a file to kb, mb, gb or tb.</p>
<pre class="brush: php">
function mksize($bytes)
{
	if ($bytes &lt; 1000 * 1024)
		return number_format($bytes / 1024, 2) . &quot; KB&quot;;
	elseif ($bytes &lt; 1000 * 1048576)
		return number_format($bytes / 1048576, 2) . &quot; MB&quot;;
	elseif ($bytes &lt; 1000 * 1073741824)
		return number_format($bytes / 1073741824, 2) . &quot; GB&quot;;
	else
		return number_format($bytes / 1099511627776, 2) . &quot; TB&quot;;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/format-file-sizes-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
