daysagolog 相关的软件列表

首页

linux下删除7天前日志的代码(php+shell)

2020-02-16 标签:linux,删除,前日,代码,php,shell,版本,实现,如下,前的,日志,param,logpath,function,del,daysagolog,empty,return

PHP版本: 实现代码如下: /** * 删除7天前的日志 * @param $logPath */ function del7daysAgoLog($logPath) { if(empty($logPath))return; $handle = opendir($logPath); while((