php 遍历目录,生成目录下每个文件的md5值并写入到结果文件中
实例代码:
array("'; $content .= $fileSize; $content .= '","'; $content .= $fileMd5; $content .= '"),'; $content .= "\n"; if (! fwrite ( $fileHandle, $content )) { print ($filePath . " can not be written!") ; } } /** * 在manifes文件中写入头信息 * * @param unknown $fileHandle */ public static function writeMaifestHeader($fileHandle) { $header = "