Results for: "import"
Contents (438)
Transform A Simple Website in Vibrant Ecommerce Portal
Web Design with respect to internet has never been limited to any barriers or disciplines, which is why attractive design…
read more
5 tools for better PHP
When we work on our applications, whatever our language of choice, sometimes we can focus too much on the code…
read more
Apache:Setup a SSL Certificate with Thawte
Here is a short tutorial how to set up a Thawte SSL 123 SSL certificate (a domain-only validation SSL Certificate).…
read more
PHP-MongoDB Beginners Guide
Over the last year or so, there's been a small revolution taking place in the database world, with the advent…
read more
Import data from Mysql to MongoDb with EzSql class
This simple php class to demonstrate how to import data from a MySql database to a Mongodb with out complications. // It uses the ezsql database class from Justin Vincent: // http://justinvincent.com/ezsql include_once "ezsql/shared/ez_sql_core.php"; include_once "ezsql/mysql/ez_sql_mysql.php"; class mongodb_importer { public $user; public $pass; public $databse; public $server; public function import($table_name,$mongo_db) { $db = new ezSQL_mysql($this->user,$this->pass,$this->database,$this->server); $m = new Mongo(); $mongo_db = $m->selectDB($mongo_db); $collection = new MongoCollection($mongo_db, $table_name); $res = $db->get_results("select * from ". $table_name); $i = 0; foreach($res as $r) { $i++; $collection->insert($r); } return $i; } } ?> And…
read more