标签:
1. array stream_get_meta_data ( int $fp
) 从封装协议文件指针中取得报头/元数据
2.string stream_get_contents ( resource $handle
[, int $maxlength
= -1 [, int $offset
= -1 ]] ) reads remaindre of a stram into a string
3. new DirectoryIterator("glob://E:/wamp/www/test/*.php"); 实例化一个文件资源
实例:获取问价下的所有.php文件
$it = new DirectoryIterator("glob://E:/wamp/www/test/*.php");
foreach($it as $f)
{
printf("%s: %.1FK\n", $f->getFilename(), $f->getSize()/1024);
}
标签:
原文地址:http://www.cnblogs.com/da-guang/p/4971235.html