ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.comพัฒนาเว็บไซต์Programming PHP CLASS:find the city, state/region, and country associated with an IP addres
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: PHP CLASS:find the city, state/region, and country associated with an IP addres  (อ่าน 933 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
astkboy2008
Newbie
*

พลังน้ำใจ: 6
ออฟไลน์ ออฟไลน์

กระทู้: 33



ดูรายละเอียด
« เมื่อ: 16 มกราคม 2010, 02:28:18 »

IPGeolocation is a PHP class which provides an easy-to-use interface to the IP Address Location XML API described at ipinfodb.com. This API allows you to find the city, state/region, and country associated with an IP address, as well as the address's approximate latitude and longitude.
Usage:
require_once('IPGeolocation.class.php');
$location = new IPGeolocation($ipAddressString);
// do some error checking here
$strCityStateCountry $location->getFriendlyLocation();
this is really usefull script recently i saw many people ask how i can get the country from an ip

use quick view tools:IPGeolocation.class.php [9.76 KB] or download:ipgeolocation-1.0.zip [3.8 KB]
บันทึกการเข้า
หน้า: [1]   ขึ้นบน
พิมพ์