linux下删除7天前日志的代码(php+shell)
PHP版本: 实现代码如下: /** * 删除7天前的日志 * @param $logPath */ function del7daysAgoLog($logPath) { if(empty($logPath))return; $handle = opendir($logPath); while((
PHP版本: 实现代码如下: /** * 删除7天前的日志 * @param $logPath */ function del7daysAgoLog($logPath) { if(empty($logPath))return; $handle = opendir($logPath); while((
Global.asax C# code 实现代码如下: string LogPath; Thread thread; void WriteLog() { while (true) { StreamWriter sw = new StreamWriter(LogPath, true, Enco
1、为图片加入水印功能 Dim Jpeg Set Jpeg = Server.CreateObject("Persits.Jpeg") ' 建立对象 Jpeg.Open BlogPath & "/upload/" & FileName ' 图片所在位置 Jpeg.Canvas.Fon