Results for: "example"

Contents (496)

12 great CSS3 generators
12 great CSS3 generators

CSS3 is great language to start off learning with, and we thought that one of the best ways to start…

read more
Distributed Storage Across Multiple Servers (Nodes) With GlusterFS 3.2.x On Ubuntu 12.10
Distributed Storage Across Multiple Servers (Nodes) With GlusterFS 3.2.x On Ubuntu 12.10

  This tutorial shows how to combine four single storage servers (running Ubuntu 11.10) to one large storage server (distributed storage)…

read more
Import data from Mysql to MongoDb with EzSql class
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
How to install LAMP (Linux,Apache,Mysql,Php) in Ubuntu 12.10
How to install LAMP (Linux,Apache,Mysql,Php) in Ubuntu 12.10

About LAMP LAMP stack is a group of open source software used to get web servers up and running. The acronym…

read more
A list of Great PHP libraries and classes you should know
A list of Great PHP libraries and classes you should know

It is an exciting time to be a PHP developer. There are lots of useful libraries released every day, and…

read more