Over a million developers have joined DZone.

Directory List With PHP

·
// description of your code here

This code list all files and subdirectories in a dirctory with links.



ribafs.net - Tutoriais

http://ribafs.net -

 $arquivo
"; }else{ $tamanho = filesize($arquivo); $m = 'bytes'; if ($tamanho>1024) { $tamanho=round($tamanho/1024,2); $m = 'KB'; } elseif($tamanho > 1024*1024){ $tamanho = round(($tamanho/1024)/1024,2); $m = 'MB'; } $arq .= " $arquivo - $tamanho $m
"; } echo $dir . $arq; closedir($dn); ?>
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}