/**
* 生成Html
*
* @param : string $path Html存放路径
* @param : string $file Html文件名
* @param : string $path Html内容
* @return :
*/
function staticHtml($path, $file, $info) {
if (!file_exists($path)){
mkdir($path, 0777, true);
}
$path .= substr($path, -1) == '/' ? '' : '/';
if (function_exists('file_put_contents')) {
$writeok = file_put_contents($path.$file, $info);
chmod($path.$file, 0777);
} else {
$fp = @fopen($file,'w');
$writeok = @fwrite($fp, $info);
@fclose($fp);
chmod($file, 0777);
}
return $writeok;
}