2009-12-31 3 views

답변

3

PHP 용 ip2country 클래스를 살펴보십시오. http://stackoverflow.com/search?q=ip+country의 더 나은 안정성을 필요로 전부 무료하지 솔루션을 제공 할 수있는 경우

1

내가 당신에게 추천 할 것입니다

http://worldtimeengine.com/api/ip

Here's an example for the IP address 195.110.64.205: 

http://worldtimeengine.com/api/ip/9d89405104e16732fa00caa1e8e6cdfd/195.110.64.205 which will return the following XML response: 

<?xml version="1.0" encoding="UTF-8" ?> 
<timezone xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:noNamespaceSchemaLocation="http://worldtimeengine.com/timezone.xsd"> 
    <version>1.1</version> 
    <location> 
     <region>United Kingdom</region> 
     <latitude>51.5</latitude> 
     <longitude>-0.1167</longitude> 
    </location> 
    <time> 
     <utc>2008-07-11 13:30:38</utc> 
     <local>2008-07-11 14:30:38</local> 
     <zone>    
      <hasDST>true</hasDST> 
      <current> 
       <abbreviation>BST</abbreviation> 
       <description>British Summer Time</description> 
       <utcoffset>+1:00</utcoffset> 
       <isdst>true</isdst> 
       <effectiveUntil>2008-10-26 00:00:00</effectiveUntil> 
      </current> 
      <next> 
       <abbreviation>GMT</abbreviation> 
       <description>Greenwich Mean Time</description> 
       <utcoffset>+0:00</utcoffset> 
       <isdst>false</isdst> 
       <effectiveUntil>2009-03-29 01:00:00</effectiveUntil> 
      </next> 
     </zone> 
    </time> 
</timezone> 
관련 문제