i tried this:
Code:
<?
$dir = directoryList("/usr/local/apache/domlogs");
print_r($dir);
exit;
function directoryList ($url) {
$outp = "";
$d = dir($url);
while($entry = $d->read()) {
$size = round(filesize($url.$entry)/1024);
if ($size > 999) $sizestring = ((round($size/100))/10)." mb";
else $sizestring = $size." kb";
$outp .= "<a href='".$url.$entry."'>".$entry."</a> [ ".$sizestring." ]<br>\n";
}
$outp = "Path: ".$d->path."<br>\n".$outp;
$d->close();
return $outp;
}
?>
but i don't have access to that directory...
cPanel.net Support Ticket Number: