\Pluf\HTTP\Download2Archive

Archive

Helper class for sending Archives.

Summary

Methods
Properties
Constants
send()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

send()

send(string  $name, mixed  $files, string  $type = HTTP_DOWNLOAD2_TGZ, string  $add_path = '', string  $strip_path = '') : mixed

Send a bunch of files or directories as an archive

Example: require_once 'HTTP/Download2/Archive.php'; Archive::send( 'myArchive.tgz', '/var/ftp/pub/mike', HTTP_DOWNLOAD2_BZ2, '', '/var/ftp/pub' );

Parameters

string $name

name the sent archive should have

mixed $files

files/directories

string $type

archive type

string $add_path

path that should be prepended to the files

string $strip_path

path that should be stripped from the files

Returns

mixed —

Returns true on success or PEAR_Error on failure.