downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

MongoGridFS::storeFile> <MongoGridFS::remove
[edit] Last updated: Fri, 25 May 2012

view this page in

MongoGridFS::storeBytes

(PECL mongo >=0.9.2)

MongoGridFS::storeBytesバイト列を分割してデータベースに格納する

説明

public mixed MongoGridFS::storeBytes ( string $bytes [, array $extra = array() [, array $options = array() ]] )

パラメータ

bytes

格納したいバイト列。

extra

保存されるファイルに追加するメタデータ。

options

格納時のオプション。

  • "safe"

    格納に成功したかどうかを調べます。

返り値

保存されたオブジェクトの _id を返します。

エラー / 例外

"safe" オプションが設定されていれば、追加に失敗した場合に MongoCursorException をスローします。



add a note add a note User Contributed Notes MongoGridFS::storeBytes
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites