Reputation: 299
I have created a folder with "temp" name, i resize images and save in this folder as temporary files, now, this files should be remove after some days, my mean is Phalcon
should remove each data in this folder after 7 days from that created date.how should i implement it in Phalcon
framework?
Upvotes: 0
Views: 522
Reputation: 2211
This is outside the scope of Phalcon.
You should use a cron job (or equivalent) to run a script that will delete the files base on their creation date.
Batch file to delete files older than N days (Windows)
Delete files older than x days on linux
Upvotes: 2