Calculate distance between two lat long points php

Hello friend, welcome to my blog post how to calculate a distance between two lat long points PHP. Today I will give you a very interesting script to calculate a distance between two lat long. If you want to create listing and searching website like www.groupon.com or this types of websites you need this code. Using this code you can show the distance between customer and service provider or filter your area within a distance. Using the visitor IP address you can get visitor latitude, longitude and using service provider address you can get the latitude and longitude of the service provider. The using the below function you can get exact distance between to location. Read more