MongoDB PHP ile çalışmak için alınamıyor

0 Cevap php

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);
?>

Onu çalıştıran çalıştı.

Ama benim localhost üzerinde hiçbir şey gösterir.

Ben ne yapabilirim?

0 Cevap