Mongo has installed, works with collections and documents, I look through everything I have through robomongo.
But the task appeared to save files in the database. I found a bunch of ready-made examples, I've already tried everything,
Writes that he does not know what is GetGridFS ()
$ m = new MongoDB \ Client ("adressserver ...."); $ db = $ m-> selectDB ("local");
// Get the users collection // $ c_faq = $ db-> faq;
// GridFS. Here says that there is no such method! $ grid = $ db-> getGridFS ();
// The file's location in the File System $ filename = "imagen1.png";
// Note metadata field & filename field $ storedfile = grid-> storeFile ($ path. $ Filename, array ("metadata" => array ("filename" => $ filename), "filename" => $ filename)) ;
// Return newly stored file's Document ID echo $ storedfile;