Hi all,
my website is updated every day , and i upload an image with each news that i add to my site ...
I have to back up the images that added recently (since my last back up) ... so i have to read the date of write of the images and compress the images that there date of write is after the last back up and download them.
i'm using gzencode function and it works great for me ... but for just single image ....
i mean i don't know how to compress multi images with this function.
any help whould be appreciated !
p.s : I use this code for a single image :
$data = implode("", file($file));
$gz_data = gzencode($data);
$fp = fopen(test.gz, "w+");
fwrite($fp, $gz_data);
fclose($fp);