How to get site url of the codeigniter.You can use this method in the controller,model and view files. First, you have to call this URL Helper file. $this->load->helper(‘url’);
Author: Sumith Harshan
CodeIgniter get URL parameters
How to fetch url parameters in the codeigniter.This is very simple.All data get as an array. Example http://www.mysite.com/index.php/deposit/11/3 index.php => 0 deposit => 1 11 => 2 3 => 3 Here is a method to get parameters.
JQuery Image resize Example
How to dynamically image re-size after loaded images, by using JQuery.This script resizing images without distorting the proportions.jQuery match all img elements and using the each function, we go through each one of them resizing them as necessary.
PHP check a random string if it exists and create a new one
How to create random string and check if it exists form database , if it does create a new one using php.You can use php time() function to create random string and convert it using md5() function. function rand_string(){ $string…