MongoGridFS
PHP Manual

MongoGridFS::storeFile

(PECL mongo >=0.9.0)

MongoGridFS::storeFileStores a file in the database

Описание

public MongoId MongoGridFS::storeFile ( string $filename [, array $extra= array() ] )

Список параметров

filename

The name of the file.

extra

Other metadata to add to the file saved.

Возвращаемые значения

Returns the database id for the file.


MongoGridFS
PHP Manual