Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 20486 программистов и 1607 роботов. Сейчас ищут 1926 программистов ...
MongoGridFS::__construct - Creates new file collections
Вернуться к: MongoGridFS
MongoGridFS::__construct
(PECL mongo >=0.9.0)
MongoGridFS::__construct — Creates new file collections
Описание
Files as stored across two collections, the first containing file meta information, the second containing chunks of the actual file. By default, fs.files and fs.chunks are the collection names used.
Use one argument to specify a prefix other than "fs":
$fs = new MongoGridFS($db, "myfiles");
Список параметров
-
db
-
Database.
-
files
-
Optional collection name prefix.
Вернуться к: MongoGridFS