MongoDB and php in Ubuntu 11.04 -


i have install php , mongodb using aptitude. wrote following program:

   <?php  $m = new mongo();  $db = $m->selectdb("employees");  ?> 

and got following error

php fatal error: class 'mongo' not found in /var/www/test.php on line 4

i saw php version is:

php 5.3.5-1ubuntu7.2 suhosin-patch (cli) (built: may 2 2011 23:18:30)

can tell me why problem coming?

the php mongodb not installed.

see mongodb


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -