PHP Doku:: Writes this file to the filesystem - mongogridfsfile.write.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-Startseite ≥ PHP-Handbuch ≥ Funktionsreferenz ≥ Datenbankerweiterungen ≥ Anbieterspezifische Datenbankerweiterungen ≥ MongoDB Native Driver ≥ GridFS Classes ≥ The MongoGridFSFile class ≥ MongoGridFSFile::write

Ein Service von Reinhard Neidl - Webprogrammierung.

The MongoGridFSFile class

<<MongoGridFSFile::getSize

The MongoGridFSCursor class>>

MongoGridFSFile::write

(PECL mongo >=0.9.0)

MongoGridFSFile::write — Writes this file to the filesystem

Beschreibung

public int MongoGridFSFile::write ([ string $filename = NULL ] )

Parameter-Liste

filename

The location to which to write the file. If none is given, the stored filename will be used.

Rückgabewerte

Returns the number of bytes written.

Beispiele

Beispiel #1 MongoGridFSFile::write() example

<?php

$images 
= $db->my_db->getGridFS('images');

$image = $images->findOne('jwage.png');
$image->write('/path/to/write/jwage.png');
?>

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",...)