Hi. First of all, sorry for my bad english.
This is my problem: when I download the zip from "My Bookmark" (zipdownload.php) the server send me a corrupted zip.
I cannot open it with unzip, file-roller, WinZip, WinRAR and Windows XP Native Zip utility.
I make the following tests:
1) I add this line in zipdownload.php
$zip->filewrite(/tmp/file_generated.zip)
and I tested this generated file: it is corrupted in the server (not during the transfer).
2) The Tar compression works well: if I change zipdownload.php
$zip = new zipfile($cwd,$flags);
in
$zip = new tarfile($cwd,$flags);
the tar archive downloaded is ok. But Windows users bugs me that they don't know how to extract tar files
So I would like zip compression to work.
3) I made an archive with only one file (safran.jpg) that is present in Coppermine Online Demo to HEX compare the corrupted generated zip with the correct zip generated from Official Coppermine online demo. The files are totally different. I attach to this post the two files. I downloaded correct.zip from Official Coppermine site, corrupt.zip from my site.
4) zlib of corse is installed.
The server configuration is:
SuSE Linux 8.2
Coppermine 1.3.2
zlib-1.1.4-105
php-4.3.1-52
apache-1.3.27-82
I have the same problem with another server:
SuSE Linux 9.1
Coppermine 1.3.2
php4-zlib-4.3.9-0.1
zlib-1.2.1-70.6
php-4.3.9-0.1
apache-2.0.52-5.1
If someone needs it, I can give the URL of the site, and a free shell account to the server to see php source files.
Thanks in advance.
Palma Demis