Codeigniter

MongoDB for PHP Developers – A Beginner’s Guide

Introduction If you want to create a website using MongoDB and PHP, this article will help you to: Connect to a MongoDB database Save documents in a collection Query documents in a collection Perform range queries Sort documents, update a document, delete one or more documents from a collection What…

Read More

March 15th, 2017 Amazon Linux, Articles, CentOS, Codeigniter, Databases, Linux, MongoDB, MySQL, PHP, Tutorials, Ubuntu

What are the best websites a programmer should visit?

Here is the list of some finest resources available on the Internet, which a programmer should visit once. Blogs Coding Horror The Codist Martin Fowler Matt Might Me, Myself and Mathematics On Coding Peter Norvig Project Nayuki Stuff you need to Code Better! Coding Style Guides CS 106B: Programming Abstractions…

Read More

March 10th, 2017 Amazon EC2, Amazon Linux, Angular Js, Articles, CentOS, Codeigniter, Databases, Ejabberd, Facebook, FFmpeg, Google API, Interview, Javascript, jQuery, Linux, Magento 2, mod_rewrite, MySQL, Node.js, PHP, SEO, SolveIt, Tech News, Tutorials, Ubuntu, Uncategorized, Wordpress

How to use Database Transactions in Codeigniter ?

In order to use transactions in your database queries. You need to use Codeigniter’s transaction methods provided by db library of Codeigniter. The basic snippet is as follows: $this->db->trans_start(); # Starting Transaction //Do your Stuff Here i.e. Queries you wants to run on database $this->db->trans_complete(); # Completing transaction if($this->db->trans_status() ===…

Read More

August 4th, 2016 Codeigniter, Databases, Interview, PHP

World’s Countries, States and Cities database

There are many Database providers which are charging us for providing the Databases of various types. One of them is very important and useful database is for world’s all countries,State and Cities. Every time when we plan to create a website then we stuck on one point that is how…

Read More

March 26th, 2016 Codeigniter, Databases, MySQL, PHP, SEO

Array vs Object when returning data

Prefer Using Objects when returning large amount of data When returning large data, it can be obvious to use Arrays. But Arrays make poor object-to-object data transfer mechanisms in object-oriented programming. Objects are main focus of  Object-oriented programming and it should be. This means that each array should be converted…

Read More

January 4th, 2016 Codeigniter, Javascript, jQuery, MySQL, PHP

Embed Photo Sphere in website

I have written in my blog ever thought about the possibility to include 360 ​​° images with JavaScript in a web site. At that time the whole thing was based on the Web viewer by Joe Simpson. Meanwhile, Google has published its own method. For this purpose, Google has published…

Read More

December 28th, 2015 Codeigniter, Google API, Javascript, jQuery, PHP, Uncategorized, Wordpress

Codeigniter : Adding Header and Footer automatically

A developer don’t really enjoy writing same line of code again and again. In Codeigniter we normally load same view templates in every controllers. e.g. $this->load->view(‘templates/header’); $this->load->view(‘body’); $this->load->view(‘templates/footer’); But it is possible to add templates header and footer automatically whenever we load any view to controller. For this we needs…

Read More

December 28th, 2015 Codeigniter

Profiling Codeigniter website to get database queries count and optimize website speed

Clients often complains that their website speed is slow. One of the most common reason was a large number of database queries that get executed for every single page, sometimes more than thousand queries for a single page. In this article, I will explain how to figure out whether the…

Read More

December 16th, 2015 Codeigniter, MySQL, PHP