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

search for in the

MongoGridFSCursor> <MongoGridFSFile::getSize
[edit] Last updated: Fri, 25 May 2012

view this page in

MongoGridFSFile::write

(PECL mongo >=0.9.0)

MongoGridFSFile::writeWrites this file to the filesystem

Description

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

Parameters

filename

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

Return Values

Returns the number of bytes written.

Examples

Example #1 MongoGridFSFile::write() example

<?php

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

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


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

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