I need a self-made php function WITHOUT using frameworks like Yii, Zend, PEAR etc, to find members "nearby".
I need 2 functions:
1. which i can call nearBy('mycity', 'my country', 'kilometers distance') and have to returns array with the cities
near by "mycity" for distance for 10kilometers.
2. which i can call nearBy_km('FROM_MyCITY', 'FROM_myCountry', 'TO_ANOTHERCITY', 'TO_ANOTHERCOUNTRY'); has to returns the kilometers from myCity to anothercity.