I'm using PEAR::Archive_Tar to create a tar backup. I already have all my stuff ready in some folders, so this is whats going on:
//we need the files
$files[0] = "../downloads/";
$files[1] = "../images/";
$files[2] = "../pages/";
$files[3] = "../pages_test/";
$files[4] = "../sql/";
//create a new archive
$tar = new Archive_Tar("../backup/backup.tar");
foreach($files as $file) {
$tar->add($file);
}
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=backup.tar");
header("Content-length: " . filesize("../backup/backup.tar"));
header("Pragma: no-cache");
readfile("../backup/backup.tar");
unlink("../backup/backup.tar");But only the images and pages directory are going into the tar file...
please help!
-Michael -- Pratt Museum IT Intern All programmers are playwrights and all computers are lousy actors.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

