2014/06/28 16:39:23 [error] 9162#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'Mongo' not found in /usr/share/nginx/html/req.php on line 4" whil$
and this code on req.php
<?php session_start(); //mongo connection $connection = new Mongo(); //database name create if not exist $keydb = $connection->selectDB('keydb'); $valdb = $connection->selectDB('valdb'); //collection name create if not exist $keywords = $connection->keydb->kunci; $konten = $connection->valdb->konten; ?>
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!