PHP Classes

How to implement / execute it ?

Recommend this page to a friend!

      PHP MySQL to Mongo  >  All threads  >  How to implement / execute it ?  >  (Un) Subscribe thread alerts  
Subject:How to implement / execute it ?
Summary:How to implement / execute it ?
Messages:3
Author:asa
Date:2015-10-03 17:02:29
 

  1. How to implement / execute it ?   Reply   Report abuse  
Picture of asa asa - 2015-10-03 17:02:29
Hi

How to implement / execute it ?

Bests Regards,

  2. Re: How to implement / execute it ?   Reply   Report abuse  
Picture of Orazio Principe Orazio Principe - 2015-10-04 07:16:58 - In reply to message 1 from asa
Hi, I put a sample script on the "Examples" section.
I suggest you to use the old library to connect with mongodb.
Regards
Orazio

  3. Re: How to implement / execute it ?   Reply   Report abuse  
Picture of Tempo Tempo - 2016-04-05 09:12:03 - In reply to message 2 from Orazio Principe
Hi
The example does not work. I get this error message:

PHP Fatal error: Class 'MongoClient' not found in C:\crasal\trunk\Code\Laravel5.2.0\resources\views\MySqlToMongo.php on line 206

I have installed the mongodb.dll in ext folder of php (windows OS). mysql and mongodb are running without issue but I cannot get this test script to work because of this error "PHP Fatal error: Class 'MongoClient' not found"

I am running windows 7 x64 bit
PHP 5.6.11 x64
Server version: Apache/2.4.16 (Win64)
mysql Ver 14.14 Distrib 5.6.26, for Win64 (x86_64)
MongoDB shell version: 3.2.3

Any idea why I get "MongoClient not found" error?