I would like to make a function that can let users download zip file when they click on a link. This zip file actually contains all the files of a directory and i want it to be made automatically.
Should i use the exec() function? Or any php functions can help me to zip files?
Also, I am using linux, can I create the zip file in winzip format instead of gzip without installing library?