我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

递归删除小文件PHP脚本

How to recursively delete small files, smaller than 10 kilobytes regardless on their creation time, format or name?

PHP script needs to go through cache folder and all sub folders and delete files smaller than 10 KB. It would be nice to show list of deleted files, but it is not must. Also it would be nice if script can be set via cron job, but also it is not must, it can do manually too.

Looking into things such as the readdir function and unlink would be a good start for this project.

近期文章

  • 基于Magento属性的ProductListing
  • 使用Zend的“文档末尾的额外内容”错误
  • PHP - 使用strpos比较字符串
  • Xdebug + eclipse pdt在进入对象函数时不调试
  • 使用Facebook Graph API代表Group创建事件
  • 如何仅允许某些选定的用户从站点下载数据
  • 与CodeIgniter中的扩展库交互
  • 如何删除已选中的列并发送单选按钮的值?
  • 如何使Jquery嵌套Ajax选项卡
  • 我有一个反映GD PHP代码,我想用原始的组成
  • 如何从链接的模型中检索字段
  • 将数据从mysql获取到弹出窗口
  • 设置the_content字符的限制
  • php - move_uploaded_file函数问题
  • PHP:Mongodb使用IP连接到服务器
  • 使用PHP 5.3.5 / IIS7将默认内容添加到301标头中
  • 是否有使用APC模块并在IE中工作的PHP文件上传进度条?
  • 使用一个参数重定向动态URL
  • 执行FQL时出现SSL证书问题
  • 如何回显我的查询结果? PHP和MySQL

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华