Login   Register  
PHP Classes


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

      PHPZip  >  All threads  >  Subdirectories  >  (Un) Subscribe thread alerts  
Summary:Sample 3 doesn't zip subdirectories & fread warnings.
Author:Richard Martin
Date:2006-06-20 13:28:12
Update:2007-03-10 19:53:14

  1. Subdirectories   Reply   Report abuse  
Picture of Richard Martin
Richard Martin
2006-06-20 13:28:12
Downladed and tried sample 3 approach to zip a dir and it's subdirectories. Did the top level OK but not a glimmer of the sub directories.

Anyone any ideas?

Also got several:
Warning: fread(): Length parameter must be greater than 0. in /home2/....../phpzip.inc.php on line 39

Didn't crash it but bit of a nuisance - seems to apply to zero size files (surprisingly!).


  2. Re: Subdirectories   Reply   Report abuse  
Picture of Bruce Richards
Bruce Richards
2006-11-11 00:07:43 - In reply to message 1 from Richard Martin
Having the same problem without the errors. Root files of folder zipped but no subdirectories are zipped up. Anyone get this to work?

  3. Re: Subdirectories   Reply   Report abuse  
Picture of George Clarke
George Clarke
2007-03-10 19:53:14 - In reply to message 1 from Richard Martin
OK, here's an interesting one.

I am running on a Windows system with PHP5.2.1. Not only is it not zipping the subdirectories but if there is a subdirectory, the files that are zipped are the ones that come after the directory name alphabetically. In other words, if there is a sub named "aba" and files named aaa.php, aab.php, abb.php, and abc.php, then only the files abb.php and abc.php are zipped. If there is no subdirectory, then they all get zipped.

Anybody have a clue as to the cause of this one??? Would be really nice if this class worked properly.

George Clarke