php - How to download file from server and zip him -


zip , download file hi, want download file server , save him rar. example: have file xy contains file img.jpg , untitled.php. want download xy , make .rar (xy.rar). how download file server , make him .rar (zip)? help..

you can try use method: http://php.net/manual/en/ziparchive.addfile.php

all avaliable methods , features php offers when want zip files, mentioned here: http://php.net/manual/en/book.zip.php


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -