10月 29 2006
$dir = opendir(‘.’); while( $fil = readdir($dir)) { if (strcmp($fil, “.”) == 0) continue; if (strcmp($fil, “..”) == 0) continue; printf(“%s\n”, $fil); } closedir($dir);
By admin • computer(php) •
10月 29 2006
ファイル一覧の取得
$dir = opendir(‘.’);
while( $fil = readdir($dir)) {
if (strcmp($fil, “.”) == 0) continue;
if (strcmp($fil, “..”) == 0) continue;
printf(“%s\n”, $fil);
}
closedir($dir);
By admin • computer(php) •