Archive_Tar::addString()

Archive_Tar::addString() -- add a string in the archive

Synopsis

require_once 'Archive/Tar.php';

boolean addString (string $filename, string $content)

Описание

This method adds the string content in the archive like a file with full filename filename.

If the archive does not exists it attempts to create it.

Параметр

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

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

Throws

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

Error codeError messageReasonSolution
NULL "Unable to open in write mode file name" The file permissions for an existing file do not allow writing or the file is locked. Check permissions and possible competive programs using the file.
NULL "Unable to open file filenamein binary read mode" The file to add to the archive could not be read. Check for typing mistakes in the function argument and file permissions.

Заметка

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

Пример


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