2015-03-17 07:55 阅读 63


I have enabled error logging in codeigniter and my logs folder path is application/logs/ in this folder files are being created from codeigniter automatically as log-2015-03-17.php and log-2015-03-16.php etc.

I want that the files which are older than two days should be deleted automatically, so is there any way in codeigniter to do this or I have to create a cron for this purpose?

Thanks in advance.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新