开发者

Delete the file manually for day to day process

I've created a l开发者_JAVA技巧og file for day to day processing and i want to delete the old files generated before 2 days.


In case you use Linux

find /var/spool/sms -mtime +2 -type f | xargs rm -f

All files in /var/spool/sms older than 2 days will be deleted.


PHP unlink — Deletes a file


Probably if you are on LInux platform you can use cron .

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜