Results for: "echo"

Contents (71)

Six Useful PHP code snippets
Six Useful PHP code snippets

Here’s a mini list of  useful PHP code snippets that we find using on a weekly basis. You could use…

read more
PHP JSON: An Example Javascript JSON Client With PHP Server
PHP JSON: An Example Javascript JSON Client With PHP Server

While JSON has many uses, probably the most common use is to pass data structures to Javascript. JSON is simply…

read more
Php Snippet: parse url and separate all it's parts
Php Snippet: parse url and separate all it's parts

Use this snippet to get some value iside urls, for example the last directory. $url = 'https://aplicaciones.org/wp-content/uploads/2011/09/skypevideo-500x361.jpg?arg=value#anchor'; print_r(parse_url($url)); $url_path = parse_url($url, PHP_URL_PATH); $parts =…

read more
PHP:EZSql class, manage your database connection easily
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
PHP-MongoDB Beginners Guide
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
Learn PHP: Handy Functions for Beginners
Learn PHP: Handy Functions for Beginners

If you’re new to PHP language, we’ll introduce you to seven really handy PHP functions in this quick tip! Function 1 : isset Check…

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
SEO from Php with PhpSEO class in PHP
SEO from Php with PhpSEO class in PHP

  Here we present a class to make better SEO in your PHP. I want to post about SEO functions and classes…

read more
Setup VNC server for remote desktop management in Ubuntu 12.04
Setup VNC server for remote desktop management in Ubuntu 12.04

   VNC is a protocol that is used to share the desktop with other users/computers over the network/Internet.In order to…

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
Php: Introduction to Mysqli Extension
Php: Introduction to Mysqli Extension

  Experienced developers eschew the original MySQL extension because of its abandoned status in PHP. Nascent web developers, however, may be…

read more