update : 2015.11.03
php.shukuma.com검색:
|
MongoGridFSFile::getResource(PECL mongo >=1.3.0) MongoGridFSFile::getResource — Returns a resource that can be used to read the stored file 설명
public resource MongoGridFSFile::getResource
( void
)
This method returns a stream resource that can be used with all file functions in PHP that deal with reading files. The contents of the file are pulled out of MongoDB on the fly, so that the whole file does not have to be loaded into memory first. At most two GridFSFile chunks will be loaded in memory. 인수이 함수는 인수가 없습니다. 반환값Returns a resource that can be used to read the file with 예제Example #1 MongoGridFSFile::getResource() example
<?php |