Archive_Tar::add()

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

Referentiesamenvatting

require_once 'Archive/Tar.php';

boolean add (mixed $filelist)

Beschrijving

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.

Parameter

Return waarde

boolean - Geeft TRUE terug bij success, FALSE bij een fout.

Throws

Tabel 39-1. Mogelijke PEAR_Error waarden

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

Note

Deze functie kan niet statisch worden aangeroepen.

Voorbeeld