1

I have tried to get the Country, City, and GMT using js by set it to cookies, and then I fetch it with PHP to save into Database. But the method I used, is does not work sometimes, So, is there anyway to get them by using PHP alone? or is there another way by using JS?

I using this js provided by maxmind

<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>

But I often fail to save the data.

Sieryuu
  • 1,510
  • 2
  • 16
  • 41
  • Please read this question my friend, I think its what your looking for: http://stackoverflow.com/questions/409999/getting-location-from-ip-address – George Nov 07 '12 at 09:23

1 Answers1

1

PHP GeoIP extension may help you

dhchen
  • 1,178
  • 2
  • 10
  • 24