首页 > 其他 > 详细

stream

时间:2015-11-17 12:23:24      阅读:285      评论:0      收藏:0      [点我收藏+]

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

 

stream

原文:http://www.cnblogs.com/da-guang/p/4971235.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!