|All requests||>||How to select files using file date a...||>||Request new recommendation||>||Featured requests||>||No recommendations|
by chandra mohan - 7 years ago (2015-01-08)
I would like to select files in a folder using the file date and then compress the files as zip files.
1. by Testi - 4 years ago (2017-12-27) Reply
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.