Calculate subdirectory size of a directory (PHP)
<p>I have a folder that contains subfolders of years (e.g. 2011, 2012 etc.). Each year's folder contains month folders (e.g 02, 09 etc).</p>

<p>How do I calculate the total size of the month folders and list them along with the year and month folder names?</p>

<p><strong>Example:</strong></p>

<p><strong>Directory Name - Size</strong></p>

<p>06/2008 - 52KB</p>

<p>10/2010 - 151MB</p>

<p>27/2012 - 852MB</p>

<p>12/01/2013 - 5GB</p>

<p>Cheers.</p>
