Blogs

Codeigniter Session Issue

January 13, 2016
Due to Codeigniter session issue i need to go away from native session class of it and look for alternative. Initially I try to debug it, but not luck. So here is the code how I used PHP session instead codeginiter. There may be two approaches to achieve this either create your own library or override ...
Read more..

wordpress creating custom widget area

December 30, 2015
Today i have created a custom widget area in my theme. Thought of sharing it. Follow below two easy steps to enable it: 1) Add below lines of code to your theme functions.php file <?php /** * Register our sidebars and widgetized areas. * */ function arphabet_widgets_init() { register_sidebar( array( ...
Read more..

Bootstrap Event for modal, executing JS before modal popup

December 10, 2015
Bootstrap provide some event which can be hook on modal functionality. “show.bs.modal” is a event used to hook a function just befor a modal window popups. Below is an example how you can acheive this using “show.bs.modal”. //Comment Popop $("#ShowComment").on("show.bs.modal", function(e) { var questoinId = $(e.relatedTarget).data('questoinid'); $.ajax({ method: "POST", url: "<?php echo site_url()?>dashboard/get_comments/"+questoinId }) .done(function( msg ) { $("#commentTable").html(msg); }); }); //Comment Popop Below are some events available ...
Read more..

PHP 7 new features list

October 19, 2015
Today google about new enhancement and featured introduced in PHP 7 and found that PHP 7 is really having a lot of new functions and features with it. Here I am listing few of them which i found interesting. 1)The removal of ASP tags (<%) and script tags (<script language=php>) as a means of entering or ...
Read more..

override codeigniter native session

October 6, 2015
Struggling a lot with codigniter session issue. So I thought of using database for storing session but it did not solve my problem either (For Database approach click here ) than I thought of giving a try to have a library which override the codeigniter session class. Here I am sharing how to create library which ...
Read more..

Finding nearest location using latitude and longitude.

August 12, 2015
Here I am explaining how you can find nearest latitude and longitude with user entered latitude and longitude. Here i am trying to search all nearby places by providing user location and distance from it. We can get the user location using my earlier article “How to get location on google Map”. Let create the a table ...
Read more..

Codeigniter storing session data in database

July 22, 2015
Due to the limitation of storing cookies in browser, we can not store bulk data in session. If we want to store more data we need to find the alternative. Codeigniter natively support storing session in database. You don’t need to do any change in code, just few configuration and it will start working fine. Here I ...
Read more..

Mysql varchar max length

July 7, 2015
Maximum data what we can store in varchar in mysql was 255. But after Mysql version 5.0.3 varchar can store maximum of 65,535 characters. But again this limit is having limitation of maximum row size which is 65535 bytes. It means including all columns it should be less than 65,535 bytes. Lets take an example as below: I ...
Read more..

Github how to share the files and folder

July 6, 2015
If you want to allow another developer or user should be able to update files and folder to your repository than you need to add a new collaborator. As a collaborator a person can commite and push the files to your repository. Here I am showing how you can do it: 1) Log in to your gitHub ...
Read more..

WordPress : Custom theme location for menu

June 16, 2015
Today I learn how you can add new menu location in wordpress theme. Here I am sharing details how to do it. Step 1: First register menu location name to database. You can do it simply by adding a function in your theme functions.php file. Function register_nav_menus() Here I am adding menu as “Mobile Menu Signin”. function ...
Read more..