my-programming-tutorials-logo

My Programming Tutorials

Find Distance Between two Addresses using Google API and PHP

Last updated on by , 44 comments

Find Distance Between two Addresses using Google API and PHP

In this article, you are going to learn that, how to create a distance calculator sort of module which can find distance between two addresses. We are going to use google map API and PHP to accomplish this task. View Demo The distance calculator module we are going to develop here is basically an API provided by The Google… Read More »

Post into Facebook Page using PHP SDK v5

Last updated on by , 63 comments

Post into Facebook Page using PHP SDK v5

In this article, we are going to learn how you can directly post into facebook page using PHP from your website or through your own platform. There are lots of companies available on the Internet which provides such kind of services i.e. Hootsuite, Sproutsocial & Socialbakers etc. Facebook always tries to motivate developers, to build such kind of… Read More »

Facebook like time ago system in php

Last updated on by , 7 comments

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 , 8 comments

Close or 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 , 3 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 , 3 comments

Get Users Latitude and Longitude using Google Place API and PHP

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 »