Here's my info:
PHP Version 5.3.5
XAMMP Version 2.5
Compiler MSVC6 (Visual C++ 6.0)
I have MongoDB installed and the shell is working perfectly. I'm just trying do develop a browser interface to connect to Mongo
Running with 64bit but I don't remember if I installed the 32 bit of 64 bit version. Phpinfo.php recognizes that Mongo.exe is in C:\mongo\bin
Another question:
Can we connect to MongoDB through a browser without the need of PHP or a webserver? For example can we connect direct through avaScript and HTML?
Have you followed these directions?
Yes, I tried that first and several other advices.
My problem is that I don't know which driver to use.
I found a similar problem to mine where they suggested the php_mongo-1.3.1-5.3-vc9-nts. dll
I tried all of them in the package and nothing worked.
Also, in my phpinfo.php it tells me it is using nt. I can't find an nt.dll.
I'm surprise there isn't a generic driver available.
It is a pity if I can't use php with Mongo.
That is why I'm looking for an alternative because I really don't need the server for what I want to do.
My problem is that I don't know which driver to use.
I found a similar problem to mine where they suggested the php_mongo-1.3.1-5.3-vc9-nts.
I tried all of them in the package and nothing worked.
Also, in my phpinfo.php it tells me it is using nt. I can't find an nt.dll.
I'm surprise there isn't a generic driver available.
It is a pity if I can't use php with Mongo.
That is why I'm looking for an alternative because I really don't need the server for what I want to do.
The file you want, assuming you have a 64bit machine is php_mongo-1.5.7-5.6-vc11- x86_64.dll. Add it to your php installation's /ext directory renaming it "php_mongo.dll".
Then you add the following line in your php.ini file.
extension=php_mongo.dll
Then restart Apache. It should then work.
Thanks Scott, I will try that and will let you know.
If it still doesn't work I'll try a Java interface or Python.
If it still doesn't work I'll try a Java interface or Python.
댓글 없음:
댓글 쓰기