Recommend this page to a friend! | Stumble It! | Bookmark in del.icio.us |
All requests | > | How to select files using file date and compress files as zip? | > | Request new recommendation | > | Featured requests | > | No recommendations | ||
by chandra mohan - 1 year ago (2015-01-08) zip
+1 | I would like to select files in a folder using the file date and then compress the files as zip files. |
0 | by Manuel Lemos 11100 - 1 year ago (2015-01-21) Comment What you can do is to use the PHP opendir function to traverse the directory with the files that you want to access. For each file you can use either the PHP functions filemtime or filectime to check if the file modification or creation time are in the range you want to select. Then you can use this Zip file creation class to add the selected files to the Zip archive you want to create. The Zip archive can be saved to a file or served for download immediately. |
Recommend package | |
|