如何将PHP与MongoDB连接? [英] How to connect PHP with MongoDB?
本文介绍了如何将PHP与MongoDB连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我计划使用noSQL开发一个网站.但是我不知道将PHP与mySQL以外的其他数据库连接.我知道MongoDB的基础知识,它是一个基于文档的数据库.如何将PHP连接到MongoDB数据库?有关于它的任何教程吗?
I am planning to develop a website using noSQL.But i am unaware of connecting PHP with other databases other than mySQL.I know basics of MongoDB which is a document based database. How can i connect PHP to MongoDB database? Is there any tutorial regarding it?
推荐答案
只需使用 MongoClient .您可以从 PECL 存储库中安装此扩展程序.
Just use MongoClient. You can install this extension from PECL repository.
这篇关于如何将PHP与MongoDB连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文