PHP Classes

How to select files using file date and compress files as zip?: Select files by date and compress files as zip

Recommend this page to a friend!
  All requests RSS feed  >  How to select files using file date a...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

How to select files using file date and compress files as zip?

Edit

Picture of chandra mohan by chandra mohan - 9 years ago (2015-01-08)

Select files by date and compress files as zip

This request is clear and relevant.
This request is not clear or is not relevant.

+2

I would like to select files in a folder using the file date and then compress the files as zip files.

  • 1 Clarification request
  • 1. Picture of Testi by Testi - 6 years ago (2017-12-27) Reply

    .

    Ask clarification

    1 Recommendation

    Zip File: Create and extract ZIP archives in purely in PHP

    This recommendation solves the problem.
    This recommendation does not solve the problem.

    0

    Picture of Manuel Lemos by Manuel Lemos Reputation 23750 - 9 years 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
    : 
    :