PHP中讀取目錄所有檔案及資料夾

$location = "./";
$dir = opendir($location);

while($entry = readdir($dir)){
print $entry.' ';
}

沒有留言: