Archive_Tar::add()

Archive_Tar::add() -- add files or directories

Synopsis

require_once 'Archive/Tar.php';

boolean add (mixed $filelist)

Описание

This method adds files and directories to an existing archive. If the archive does not exist, it attempts to create it. The files and directories listed are added at the end of the archive, even if a file with the same name is already archived.

Параметр

Возвращаемое значение

boolean - Возвращает TRUE в случае успеха и FALSE при неудаче.

Throws

Таблица 39-1. Возможные значения PEAR_Error

Error codeError messageReasonSolution
NULL"Invalid file list"The argument for the function is not correct formatted or build. Check for typing mistakes in the argument

Заметка

Эта функция не должна вызываться статически.

Пример


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ