Archive_Tar::extractInString()

Archive_Tar::extractInString() -- extract one file and return it as a string

Synopsis

require_once 'Archive/Tar.php';

boolean extractInString (string $path)

Описание

This method extracts the file identified by path from the archive and returns it as a string. It does not use temporary files.

Параметр

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

string - the content of the extracted file

Throws

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

Error codeError messageReasonSolution
NULL " Unable to open in read mode archive " The file is exclusive locked by another application. Check for other applications working on the file. This can not be caused by a competive processing the archive with Archive_Tar
NULL " Invalid extractinstring mode mode " Implementation error Should not occur, please set up a bug report.
NULL " Error while opening name in write binary mode " The file could not be created. The file is maybe locked.
NULL " Extracted file filename does not have the correct file size filesize (size expected). Archive may be corrupted. " Read the message. Read the message.

Заметка

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

Пример


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