Overview

Classes

  • MultipartCompress
  • Overview
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Class MultipartCompress

This PHP class compact and split files and merge and decompact files.

Located at MultipartCompress.php
Methods summary
public static boolean
# zip( string $i, string $o, integer $s = 0 )

Compact a file in multipart zip archive.

Compact a file in multipart zip archive.

Parameters

$i
string
$i The file to compact.
$o
string
$o The zip archive (*.zip).
$s
integer
$s The mnax size (in byte) for the parts. 0 to no parts.

Returns

boolean
Return number of parts created.
protected static integer
# split( string $i, integer $s )

Split the zip archive.

Split the zip archive.

Parameters

$i
string
$i The zip archive.
$s
integer
$s The max size for the parts.

Returns

integer
Return the number of parts created.
public static boolean
# unzip( string $i, string $o, integer $p = 0 )

Decompact the zip archive.

Decompact the zip archive.

Parameters

$i
string
$i The zip archive (*.zip).
$o
string
$o The directory name for extract.
$p
integer
$p Number of parts of the zip archive.

Returns

boolean
Return TRUE for success or FALSE for fail.
protected static boolean
# merge( string $i, integer $p )

Merge the parts of zip archive.

Merge the parts of zip archive.

Parameters

$i
string
$i The zip archive (*.zip).
$p
integer
$p Number of parts of the zip archive.

Returns

boolean
Return TRUE for success or FALSE for fail.
MultipartCompress API documentation generated by ApiGen 2.8.0