my-programming-tutorials-logo

My Programming Tutorials

Facebook like time ago system in php

Last updated on by , 1 comment

facebook like time ago system in php

In this tutorial, we are going to learn how to make Facebook like time ago system in PHP. In my previous post we have learnt How to close a DIV container when clicking outside using Jquery, I know it’s kinda off topic, because in this topic we are going to learn to convert timestamp to time… Read More »

Close or Hide DIV when clicking outside

Last updated on by , 4 comments

hide div when clicking outside

In this tutorial, I’m gonna demonstrate you how to track if a click event is being made outside of an HTML element. Through this example, we are going to close or hide div using Jquery when a click action occurs outside of that element on which the DIV was produced by clicking. If you have ever… Read More »

Resize Image Without Stretching in Codeigniter

Last updated on by , 2 comments

resize image without stretching in codeigniter

By this article “resize an image without stretching in CodeIgniter” I’m going to show you the mathematics and logic of resizing an image to a different width and height without squeezing or stretching the original image. If the destination image contains a different aspect ratio than the source image, then the source image will be cropped… Read More »

Get Users Latitude and Longitude using Google Place API and PHP

Last updated on by , 2 comments

get users latitude and longitude

This tutorial is prepared for those Developers who want to get users latitude and longitude. This can be done by many methods, here I’m going to use Google Place API to make such things easier. The method and logic I’m going to use is when user fills the registration form up, we’d capture his city value (Note:… Read More »

Autocomplete Address Search Module Using Google API and PHP

Last updated on by , 9 comments

autocomplete address search module

Today I’m going to show you how you can add an autocomplete address search module on your website using Google Place API web service. In our autocomplete address search module we have used a Jquery plugin named Select2, for type and search feature to our module. SEE DEMO HERE Steps to implement an autocomplete address search module… Read More »