.ApplicationComposer/lib/frdl/Compress/Zip/Helper.php
protected static function split($i, $s){
        $fs = filesize($i);
        //$bn = basename($i);
        //$dn = dirname($i).DIRECTORY_SEPARATOR;
        $p = 1;
        
        for($c = 0; $c < $fs; $c = $c + $s){
            $data = file_get_contents($i, FILE_BINARY, null, $c, $s);
            //$fn = "$dn$bn.$p";
            $fn = "$i.$p";
            file_put_contents($fn, $data);
            $p++;
            unset($data);
        }
        unlink($i);
        return $p - 1;
    }
protected static function split($i, $s){
        $fs = filesize($i);
        //$bn = basename($i);
        //$dn = dirname($i).DIRECTORY_SEPARATOR;
        $p = 1;
        
        for($c = 0; $c < $fs; $c = $c + $s){
            $data = file_get_contents($i, FILE_BINARY, null, $c, $s);
            //$fn = "$dn$bn.$p";
            $fn = "$i.$p";
            file_put_contents($fn, $data);
            $p++;
            unset($data);
        }
        unlink($i);
        return $p - 1;
    }
protected static function split ( $ i , $ s ) { $ fs = filesize ( $ i ) ; //$bn = basename($i); //$dn = dirname($i).DIRECTORY_SEPARATOR; $ p = 1 ; for ( $ c = 0 ; $ c < $ fs ; $ c = $ c + $ s ) { $ data = file_get_contents ( $ i , FILE_BINARY , null , $ c , $ s ) ; //$fn = "$dn$bn.$p"; $ fn = "$i.$p" ; file_put_contents ( $ fn , $ data ) ; $ p ++ ; unset ( $ data ) ; } unlink ( $ i ) ; return $ p - 1 ; }
Split the zip archive.
@param string $i The zip archive.
@param integer $s The max size for the parts.
@return integer Return the number of parts created.
Split the zip archive .