<?
$basedir = "../nexflo";
$backone ="../";
chdir($basedir);
$count = 0;
$i = 0;
$dir = dir(".");
while ($file = $dir->read())
{
echo"$basedir";
if (is_file($file))
{
$count = ($count + filesize($file));
}
if (is_dir($file))
{
$dirlist[] = $file;
}}
echo "$dirlist[2]";
echo "$count";
if (count($dirlist) > 0)
{
while (list ($key, $val) = each ($dirlist))
{
chdir($val);
$dir = dir(".");
while ($file = $dir->read())
{
if (is_file($file))
{
$count = ($count + filesize($file));
}
if (is_dir($file) && ($file !="." && $file !=".."))
{
$subdirlist[] = $file;
}
}
chdir($basedir);
}
}
?>
Ok the top part work's
it grabs the main folder... but the sub folder part does not work
Please help what is wrong
Thank you
Chris Calzaretta