0) {
$cachefile = $cachefilename . $num++ . '.dat';
if (file_exists($cachefile)) {
$cfile = fopen($cachefile, 'rb');
$content = fread($cfile, filesize($cachefile));
fclose($cfile);
fwrite($file, $content);
}
else {
$num = -1;
}
}
fclose($file);
}
//调用
cutfile($orgfile, 10 * pow(2,20)); //10 * pow(2,20) 就等于 10m pow() 函数返回 x 的 y 次方
mergefile('ok.exe');
?>
http://www.bkjia.com/phpjc/744708.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/744708.htmltecharticle复制代码 代码如下: ?php ini_set(memory_limit, 50m);//必须的,根据你环境的实际情况尽量大,防止报错 ini_set(max_execution_time, 100); //file_exi...
