Login   Register  
PHP Classes
elePHPant
Icontem

problem with compression

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      TAR/GZIP/BZIP2/ZIP Archives  >  All threads  >  problem with compression  >  (Un) Subscribe thread alerts  
Subject:problem with compression
Summary:only admit 19 directories?
Messages:1
Author:isaac marin
Date:2009-09-02 16:08:11
 

  1. problem with compression   Reply  
Picture of isaac marin
isaac marin
2009-09-02 16:08:11
I'm on Linux and it's a bit crazy.When I run the script only process 19 directories with its files when there are 40 directories. I've tested tgz and zip, and both did the same result. The script runs at the root of the website (ex: /var/www/MY_WEB)

$content_path = "dir/";

include("scripts/archive.php");

$file_tgz = new gzip_file("content.tgz");

$file_tgz->set_options(array('basedir' => $content_path, 'overwrite' => 1, 'level' => 3, 'inmemory' => 0));

$file_tgz->add_files(array("*.*"));

$file_tgz->exclude_files("*.db");
$file_tgz->create_archive();

Inside of "dir" there are 40 directories with file inside of them, and when the tgz is created, I open it and only see 19 directories with its files :S

Can anyone tell me what's going on?