I dont know how to do this...so I ask for your help!
I need to create a php script that will run the following zip command:
zip -jt mmddyyyy scripts/fullphoto uploads/*.jpg
Now, the mmddyyyy needs to be todays date on the server. The goal is to zip only files that have been added today....or has todays datestamp. How can this be achieved.
Zip man shows the following:
-t Do not operate on files modified prior to the specified
date, where mm is the month (0-12), dd is the day of the
month (1-31), and yyyy is the year. The ISO 8601 date
format yyyy-mm-dd is also accepted. For example:
zip -rt 12071991 infamy foo
zip -rt 1991-12-07 infamy foo