Well.... the question was to create a compressed file with php/unix/linux en the extract it on a windows machine.
<? exec (tar -zcvf file.tar.gz file1.txt file2.jpg); ?>
Now I want to turn it the other way around.
Because I'm visiting a lot of Honda car events, and I'm making photo's during thes events, it often happends that I want to publish 100 to 150 photos.
I made a photo gallery with a special upload form takes the original photo, makes a thumbnail and puts it together in a nice photobook.
Because of the large amounts of photo's (100 to 150) it takes a lot of time to fill out the upload form.
Now I had a new idea. Let's put all 100 to 150 photos in one zip file. Upload it to the photo gallary, let the gallary take out the photo's from the zip file and do what it already did... make thumbnails and the gallary.
I already have a little piece of code, but that only seems to work with GZipped files en not with files created by winzip.
<?
$file = "./testphoto.jpg" ;
$fp = fopen("$file", "w") ;
$filename = "test.zip" ;
$zp = gzopen($filename, "r");
if ($zp) {
while (!gzeof($zp)) {
$buff1 = gzgets ($zp, 4096) ;
fputs($fp, $buff1) ;
}
}
gzclose($zp) ;
fclose($fp) ;
?>
Can someone tell me how I can extract files stored in a archive created with WINZIP?
Greatzzz..