I have Fedora 13, and I have installed httpd, php, and mysql using yum.
Then downloaded mongodb.
Added the extension=mongo.so
to my php.ini
Restarted httpd
Wrote the following code:
<?php
$connect = new mongo();
$db = $connect->data;
$collection = $db->foobar;
$info = array("name" => "wael", "age" => 24);
$collection = insert($info);
$obj = $collection->findOne();
var_dump($obj);
?>
Tried running it.
But it shows nothing on my localhost.
What can I do?