How to Prevent SQL injection in Codeigniter?

In the web application security, SQL injections are place a very important role. To prevent SQL injections in PHP, we usually use mysql_real_escape_string() function along with other techniques. In codeIgniter ,we no need […]

Custom validation Rules in codeigniter ?

CodeIgniter Form Validation Library is Pretty Simple to Use and very powerful. We can define our own Custom Validation Rules in CodeIgniter in two different approaches. 1. By Using Callbacks. 2. By Extend CodeIgniter’s […]

How to Get Last inserted ID in Zend Framework 2?

We often need last inserted ID for different reasons(for example when you need to store foreign key), Immediately after a record has been inserted into the database, you can get the id that was auto incremented(primary […]

How to Send Email with SMTP and PHP Mailer ?

In this post i am gonna write about Sending Emails Through the SMTP(Send Mail Transfer Protocol) and PHP Mailer Library. You can download PHP Mailer at Here is the simple Script for […]

How to check is a string valid json in PHP ?

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate & JSON is Language independent. PHP has 4 built in […]

Best authentication libraries for CodeIgniter

CodeIgniter till now does not have any native built-in library for authentication and authorization Here is the list of CodeIgniter’s Best Authentication Libraries. This libraries were developed by different developers, […]

How to Send Gmail using CodeIgniter Email Library

In this post I would like to show you configuring Codeigniter email library to send emails using GMail SMTP server. Configuring and sending emails in Codeigniter application is not a tedious task, it is very simple and […]

How to use MySQLi_connect in PHP

The MySQLi extension was developed to take advantage of new features found in MySQL systems versions 4.1 and Above. MySQLi is also sometimes known as the MySQL improved extension.The MySQLi extension is included with PHP […] Protection Status