|
Main (PHP)
3rd Party Streams
Resources
Code Snippets
Affiliates
|
|
|
|
| |
HTTP_Download::sendArchiveHTTP_Download::sendArchive() --
Send an archive created on the fly
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
string
$name
- the name the archive should have
mixed
$files
- list of files/directories
string
[$type = HTTP_DOWNLOAD_TGZ]
- the format of the archive (TAR, TGZ, BZ2 or ZIP)
string
[$add_path = '']
- path that should be prepended to the files
string
[$strip_path = '']
- path that should be stripped from the files
Return value
Returns TRUE on success,
PEAR_Error on failure.
NoteThis function should be called
statically. |
|
|
| |
|
|
|
Top Sponsor
Sponsors
Sponsors
Advertisting
Affiliates
|
|