D
D
DunkanMaklaut2021-01-22 06:54:57
PHP
DunkanMaklaut, 2021-01-22 06:54:57

How to connect MongoDB to PHP?

Good day! Not so long ago, I started learning PHP for project activities, it took work with MongoDB. I got the information from here https://metanit.com/nosql/mongodb/3.1.php , did everything as it is written there, downloaded the php_mongodb.ini package for my php 7.3, only downloaded from PECL and not from the link from the site (does not work), I threw it into ext (it is registered by default as a folder for additional libraries), I registered it in php.ini, I restart phpinfo () it does not show, then I googled for a long time, it seems that they also write that I need a vendor folder that composer creates, I did, only what to do next with it and where to put it is not clear. Help me to understand

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lander, 2021-01-22
@usdglander

php_mongodb.iniit's not a package. This is a settings file. I assume that you didn’t download and install MongoDB itself.
upd: https://www.mongodb.com/try/download/community download.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question