set_time_limit(3600);
require_once("iecho.php");
require_once( "API/batchFile.php");
$fl = new batchFile();
$fl->extname ="*"; //the file type need to be operated ,format is [;php;html;]
$fl->deepLimit = 0;
$fl->path='D:\movie\上传'; //operate dir
$fl->start();
foreach( $fl->file as $file )
{
$arrFile[] = str_replace("/","\\",$fl->path.$file);
}
$fl->file = array();
$fl->extname ="*"; //the file type need to be operated ,format is [;php;html;]
$fl->deepLimit = 0;
$fl->path='D:\movie\mi'; //operate dir
$fl->start();
foreach( $fl->file as $file )
{
$arrFile[] = str_replace("/","\\",$fl->path.$file);
}
foreach( $arrFile as $vfile )
{
$md5 = md5_file( $vfile );
if( $myArr[$md5] )
{
$str .= "del \"". $vfile . "\"\r\n";
echo $vfile . "<br>\n";
}
$myArr[$md5] = $vfile;
$s .= $vfile . "\t=\t" . $md5 . "\n";
}
$rt = file_put_contents ( "d:\all.txt" , $s );
$rt = file_put_contents ( "d:\bad.txt" , $str );
require_once("iecho.php");
require_once( "API/batchFile.php");
$fl = new batchFile();
$fl->extname ="*"; //the file type need to be operated ,format is [;php;html;]
$fl->deepLimit = 0;
$fl->path='D:\movie\上传'; //operate dir
$fl->start();
foreach( $fl->file as $file )
{
$arrFile[] = str_replace("/","\\",$fl->path.$file);
}
$fl->file = array();
$fl->extname ="*"; //the file type need to be operated ,format is [;php;html;]
$fl->deepLimit = 0;
$fl->path='D:\movie\mi'; //operate dir
$fl->start();
foreach( $fl->file as $file )
{
$arrFile[] = str_replace("/","\\",$fl->path.$file);
}
foreach( $arrFile as $vfile )
{
$md5 = md5_file( $vfile );
if( $myArr[$md5] )
{
$str .= "del \"". $vfile . "\"\r\n";
echo $vfile . "<br>\n";
}
$myArr[$md5] = $vfile;
$s .= $vfile . "\t=\t" . $md5 . "\n";
}
$rt = file_put_contents ( "d:\all.txt" , $s );
$rt = file_put_contents ( "d:\bad.txt" , $str );