This Distance PHP class can calculate the distance between two latitude/longitude locations using PHP.