i am using http://api.easyjquery.com/ips/?ip=115.119.253.90&full=true this api for getting current location but when this site goes down i am not able to get current loc
If you don't want to use the HTML5 Geolocoation API, you can detect a bit from IP.
Or try other other solution
The Google Geocoding API
Geolocator-PHP
Maxmind http://www.maxmind.com/app/php
ipinfodb