hello,
i have fedora 13, and i have installed httpd,php,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?