I am new to both PHP and mongoDB. I want to know if there is any way to run a PHP project having different files on a single mongoclient();
I have created one connection.php file which is used for connecting to database but whenever I include this same file in different files, it starts new mongodb server connection.
Is there any way that I can run complete project on single mongoDB client?