In WEB applications, it is also very common to locate and record access logs based on IP addresses. in ThinkPHP, you can easily obtain and locate ThinkPHP IP addresses.
Can be in the official website http://www.thinkphp1.cn/extend/223.htmldownload
In WEB applications, it is also very common to locate and record access logs based on IP addresses. in ThinkPHP, you can easily obtain and locate IP addresses at http://www.thinkphp1.cn/extend/223.html) it also contains the extension class. If the
ThinkPHP uses the UTFWry address library for IP address locating. The extension class can also be included in the official http://www.thinkphp1.cn/extend/223.htmldownload iplocation extension class library, download expansion package
In Web applications, locating and logging related access logs based on IP addresses is also a common requirement, and in thinkphp you can easily implement IP address acquisition and positioning
You can download the IP Location Extension class
You can download the IP Location Extension class library at the http://www.thinkphp.cn/extend/223.html of the official website, or the extension class is already included in the download extension package (http://www.thinkphp.cn/down/253.html). If
You can download the IP Location Extension class library at the http://www.thinkphp.cn/extend/223.html website, or download the extension package (http://www.thinkphp.cn/down/253.html) inside the extended class. If the Upload class library is
in Web applications, it is also a common requirement to locate and record related access logs based on IP addresses, and you can easily implement IP address acquisition and location in thinkphp You can download the IP Location Extension class
In WEB applications, it is also very common to locate and record access logs based on IP addresses. in ThinkPHP, you can easily obtain and locate IP addresses. In WEB applications, it is also very common to locate and record access logs based on IP
Make method one, use IP138 database to query domain name or IP address corresponding geographical location.
#-*-coding:gbk-*-
import urllib2
import re
try: While
True:
ipaddr = Raw_input ("Enter IP Or Domain Name: ")
if ipaddr = =" ""
Reprint please indicate the source:, Thank you!Content SummaryThis section focuses on the basis of network communication, mainly related to the content is:TCP/IP protocol Cluster Fundamentals: two modelsIPV4 Protocol Basics:IP Address Classification
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.