'; $dh = opendir('.'); while ($file = readdir($dh)) { if (is_file($file) && ($file{0} != '.') && ($file != basename(__FILE__))) { switch ($file) { case 'phpThumb.demo.object.simple.php': case 'phpThumb.demo.object.php': echo ''.str_replace(' ', ' ', str_pad(filesize($file), 10, ' ', STR_PAD_LEFT)).' '.$file.' (cannot work as a live demo)
'; break; default: echo ''.str_replace(' ', ' ', str_pad(filesize($file), 10, ' ', STR_PAD_LEFT)).' '.$file.'
'; break; } } } echo ''; ?>