当前位置:Gxlcms > PHP教程 > php遍历目录,生成目录下每个文件的md5值并写入到结果文件中_PHP教程

php遍历目录,生成目录下每个文件的md5值并写入到结果文件中_PHP教程

时间:2021-07-01 10:21:17 帮助过:19人阅读

 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 = "


www.bkjia.comtruehttp://www.bkjia.com/PHPjc/755767.htmlTechArticlearray("';$content .= $fileSize;$content .= '","';$content .= $fileMd5;$content .= '"),';$content .= "\n";if (! fwrite ( $fileHandle, $content )) {print ($filePath . " can not be wr...

人气教程排行