Principle: Extract the IP address from the database based on the visitor IP, and then go to the weather network to extract weather information. With its own IP database, this program is compatible with PHP environments under win and linux systems.
Notice: The local test shows that when the IP is 127.0.0.1 or the LAN IP, the weather will not be displayed because the city is first identified through the IP and then the weather is identified based on the city.