/ Published in: PHP
"Here is a very handy function, which calculate the distance from a point A to a point B, using latitudes and longitudes. The function can return the distance in miles, kilometers, or nautical miles."
URL: http://www.catswhocode.com/blog/10-super-useful-php-snippets