MONGOGRIDFSFILE.WRITE(3) 1 MONGOGRIDFSFILE.WRITE(3) MongoGridFSFile::write - Writes this file to the filesystemSYNOPSISpublic int MongoGridFSFile::write NULL ([string $filename])DESCRIPTIONPARAMETERSo $filename - The location to which to write the file. If none is given, the stored filename will be used.RETURN VALUESReturns the number of bytes written.EXAMPLESExample #1 MongoGridFSFile::write example <?php $images = $db->my_db->getGridFS('images'); $image = $images->findOne('jwage.png'); $image->write('/path/to/write/jwage.png'); ?> PHP Documentation Group MONGOGRIDFSFILE.WRITE(3)