PHP Classes

problem with compression

Recommend this page to a friend!

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

  1. problem with compression   Reply   Report abuse  
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/";


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

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



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?