I need to trace the ipadress (where my website access)for optional loading of my theme.Explanation: I want to add a share link to twitter and facebok in my application.i think in some countries like china;twitter blocked.Thats why i need to check from where my site is accessing.otherwise which affecting my site's performance.How can we solve this problem in PHP.If anybody have experience please help me..
A:
Using PHP you can access the IP address of the visitor in the variable: $_SERVER['REMOTE_ADDR']
Check out: http://www.php.net/manual/en/reserved.variables.server.php
Greg
2010-05-04 08:11:11
A:
Use GeoIP is the better way to get location infromation by ip address. You can get by this solution information as City, State, Country, Longitude, Latitude and much more like ISP name.
Svisstack
2010-05-04 08:13:41