stream

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);
}

 

posted on 2015-11-17 11:44  IsRunning  阅读(170)  评论(0编辑  收藏  举报