09 2017 档案
PHP拷贝目录下的所有文件
摘要://目录拷贝函数到任意目录function dir1($filename,$dest){ static $dirname; $dirname.=$dest; //连接头(第一层目录) static $dir; //中间变量 if(file_exists($filename)){ //如果文件存在 i
阅读全文
用PHP遍历文件夹,输出文件大小
摘要:function fileone($filename){ static $filesnames; static $file;//静态变量 if(filesize($filename) 0){ $filesnames = scandir($filename); //将文件名转化为数组 foreach(
阅读全文
浙公网安备 33010602011771号