HTTP_Download::staticSend (Previous) (Next) HTTP_Request

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

HTTP_Download::sendArchive()

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

Opis

Send an archive created on the fly by Archive_Tar or Archive_Zip.

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.

The parameter $type can be one of HTTP_DOWNLOAD_TAR, HTTP_DOWNLOAD_TGZ, HTTP_DOWNLOAD_BZ2 and HTTP_DOWNLOAD_ZIP.

Notatka: The usage of this method is deprecated. Use HTTP_Download_Archive::send() instead.

Parametr

  • 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

Zwracana wartość

Zwraca TRUE w przypadku powodzenia, PEAR_Error w przypadku niepowodzenia.

Uwagi

Ta funkcja powinna być wywołana statycznie.

HTTP_Download::staticSend (Previous) (Next) HTTP_Request

Download Documentation Last updated: Mon, 02 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.