PEAR::Archive_Tar: File limit???
| From: | Michael Smith | Date: | Wed, 23 Jul 2003 01:18:14 +0000 |
| Subject: | PEAR::Archive_Tar: File limit??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-156365@lists.php.net to get a copy of this message | ||
Hi,
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.