2014-09-26 linux上の大量のファイルを削除 雑記 ディレクトリ内に大量のファイルがあり、bashではどうにもならない時 emove_file.php <?php $path = "directory/" $res_dir = opendir( $path ); while($file_name = readdir( $res_dir ) ){ unlink( $path. $file_name ); print $file_name."\n"; }$ php remove_file.php