Posted by Barbara on 02/15/06 12:52
Hi all,
I'm trying to make a little script that can compress in tar format a folder,
but the one I did give me always the answer "Coul not create archive".
Here is the script:
<?php
//include class
require ("/usr/lib/php/Archive/Tar.php");
$tar = new Archive_Tar ("data.tar");
$files=array("/backup"); //backup is a folder
$tar->create($files) or die("Could not create archive!");
?>
Someone could help me please to solve it ?
TIA
Barbara
[Back to original message]
|