Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 360075 программистов и 5693 робота. Сейчас ищут 3189 программистов ...
Приступая к работе

MongoGridFSFile::write - Writes this file to the filesystem

Вернуться к: MongoGridFSFile

MongoGridFSFile::write

(PECL mongo >=0.9.0)

MongoGridFSFile::write — Writes this file to the filesystem

Описание

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

Список параметров

filename

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

Возвращаемые значения

Returns the number of bytes written.

Примеры

Пример #1 MongoGridFSFile::write() example

<?php

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

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


Вернуться к: MongoGridFSFile

© 2026 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты
Разработка компании ODWR