Mongo Functions
PHP Manual

mongo_gridfs_store

(PECL mongo >= 0.8.0)

mongo_gridfs_storeStore a file in the database

Description

MongoId mongo_gridfs_store ( resource $gridfs , string $filename )

Store a file in the database.

Parameters

gridfs

The gridfs connection to use.

filename

Name of the file to store.

Return Values

The MongoId given to the file saved to the database.

See Also


Mongo Functions
PHP Manual