PHP Doku:: Stores a file in the database - mongogridfs.storefile.html

Verlauf / Chronik / History: (2) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische DatenbankerweiterungenMongoDB Native DriverGridFS ClassesThe MongoGridFS classMongoGridFS::storeFile

Ein Service von Reinhard Neidl - Webprogrammierung.

The MongoGridFS class

<<MongoGridFS::storeBytes

MongoGridFS::storeUpload>>

MongoGridFS::storeFile

(PECL mongo >=0.9.0)

MongoGridFS::storeFileStores a file in the database

Beschreibung

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

Parameter-Liste

filename

The name of the file.

extra

Other metadata to add to the file saved.

options

Options for the store.

  • "safe"

    Check that this store succeeded.

Rückgabewerte

Returns the _id of the saved object.

Fehler/Exceptions

Throws MongoCursorException if the "safe" option is set and the insert fails.


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)