Results for: "password"
Contents (121)
Reset Linux root password without knowing the password
So there it goes - Linux is a secure OS. No, really it is. Despite the title of this post,…
read more
PHP:EZSql class, manage your database connection easily
EZSql is a php class to make it very easy to deal with database connections, there’s already an ezsql documentation: Extensive…
read more
50 Useful jQuery Plugins
We have compiled a list of 50 awesome plugins: we have split all of the plugins into the following categories:…
read more
Install and Setup SSL in Webmin and Apache
SSL is a protocol for making secure, authenticated connections across an insecure network like the Internet. It encrypts network traffic,…
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