Archive_Tar::create()

Archive_Tar::create() -- create archive file

Synopsis

require_once 'Archive/Tar.php';

boolean create (mixed $filelist)

Описание

This method creates the archive file and adds the listed files or directories.

If a file with the same tar name exists and is writable, it is replaced by the new tar archive (it is not an 'add', but a 'create'). If a file exists and is write-protected or is a folder, the method raises a PEAR_Error.

Параметр

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

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 йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ