Blogs

Mysql Event scheduler

September 18, 2016
I have already posted a blog (Event Scheduler an alternative to cronjob) with different advantages of Even scheduler over cron job, here I am sharing how you can configure MySql server to enable or disable scheduler and writing a sample event scheduler. You can check with below query as your server is up for event scheduler ...
Read more..

Angularjs Ajax pagination

July 3, 2016
Sharing below how you can implement AJAX pagination using angularJS. As I am in the learning phase of angular i get fascinate after implementing something new which i don’t know. So I thought for noting it down, which will help someone out there. Steps 1: Create a HTML file as “test.html” and copy the below code. Little explanation ...
Read more..

How to convert Base64 string from IOS to image in PHP

March 31, 2016
Today I learn how you can store images in folder, posted using IOS or Android application to PHP server. APP need to registered a user and I am able to get and insert all user data pass using JSON format except profile image. APP sending image data as string encoding in base 64 which is looking something like below: APP converted image ...
Read more..

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..