HTTP_Download::sendArchive()

HTTP_Download::sendArchive() --  Send an archive created on the fly

Synopsis

mixed HTTP_Download::sendArchive (string $name, mixed $files, string [$type = HTTP_DOWNLOAD_TGZ], string [$add_path = ''], string [$strip_path = ''])

Description

Send an archive created on the fly by Archive_Tar .

The parameter $files can be an array of files/directories or a space separated string of files/directories which should be packed to an archive.

Parameter

Return value

Returns TRUE on success, PEAR_Error on failure.

Note

This function should be called statically.