Author Archives: Admin

Codeigniter default controller not working in PHP Version 5.6.15

Codeigniter controller will not work if we update your xampp version to v3.2.2. Or in other case if you upgrade the php version to 5.6+

in some cases, in the autoload.php in the config folder

$autoload[‘libraries’] = array(‘form_validation’,’session’,’database’);

if we remove database from the array codeigniter controller will work.

So solution to work this controller in the codeigniter is change dbdriver from mysql to mysqli

$db[‘default’][‘dbdriver’] = ‘mysqli’;

Local Storage and Session Storage in HTML5

Local Storage:

  • in local storage data is storing in the browser

    its secure and more data can store


  • Local storage data storing in two object

    1.window.localStorage

    2.window.sessionStorage

    Local storage data will not be deleted after closing the browser. it will be avaialble in the user
    browser for ever.

    Example for Storing local storage.

    localStorage.myval=’vasanthan’ ;– this is for adding value
    localStorage.removeItem(“myval”);–remove the value

    Session Storage

    This is also equal to localstorage.but it stores the data for session basis,if we close the browser or
    browser tab it will delete storage value.