2) {sort($d);} if ($j > 2) {sort($f);} ////////////////////////////////////////////////////////////////////////////folder contents don't match begin $fcount = $i; for($i=0; $i<$fcount; $i++) { $file = $f[$i]; $ftp_dest1 = 0; $ftp_dest2 = 0; $largefile = @filesize("$folder/$f[$i]"); $ftp_dest = 0; if (file_exists("$destination/$file")){$ftp_dest1 = @filesize("$destination/$file")+0;} $chdirsrc = chdir($folder); $nooffiles++; if ($largefile <> $ftp_dest1) { if ($ins==1) { copy("$folder/$file","$destination/$file"); } else { unlink("$folder/$file"); } if (file_exists("$destination/$file")){$ftp_dest2 = @filesize("$destination/$file")+0; } $ecopied++; if (1==2) { echo " file ($total...$nooffiles...$ecopied...$largefile...$ftp_dest1...$ftp_dest2) $folder/$f[$i] $destination/$file "; } $ftp_dest1 = $ftp_dest2; } $total = $total + $ftp_dest1; } $dcount = $j; for($ifolder=0; $ifolder < $dcount; $ifolder++) { if ($d[$ifolder] !='') { $lll = $lev+1; sendit($src,$trg,"$folder/$d[$ifolder]",$lll,$ins); $iii=$ifolder+1; } } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////deleteweb ?>