Archive_Tar::createModify()

Archive_Tar::createModify() -- create a new archive

Synopsis

require_once 'Archive/Tar.php';

boolean createModify (array $filelist, string $add_dir [, string $remove_dir = ''])

Beschreibung

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

If the file already exists and is writable, it is replaced by the new tar. It is a 'create' and not a 'add'. If the file exists and is read-only or is a directory, it is not replaced.

Parameter

Rückgabewert

boolean - Gibt bei Erfolg TRUE zurück, bei einem Fehler FALSE.

Fehler-Meldungen

Tabelle 39-1. Mögliche Fehler-Arten

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

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

Beispiel