$root = "/web/domains/Potatoe.COM/platform";
$fp = popen("/bin/ls -1 $root/plankdirs","r");
if (!$fp)
{
echo("popen failed\n");
}
$fstr = fgets($fp, 256);
while ($fstr)
{
$istr = eregi_replace($fstr," ","");
$ftime = filemtime("$root/plankdirs/$istr");
$fdate = date("Y/m/d H:i:s",$ftime);
echo("[$root/plankdirs/$istr][$ftime][$fdate]
\n");
$fstr = fgets($fp, 256);
}
pclose($fp);
?>