i want my webpage to display weather automatically from any particular website that provides weather information using php codes.
how to write the php coding?
weather display automatically
Moderator: General Moderators
-
firestar_lene
- Forum Newbie
- Posts: 10
- Joined: Mon Mar 29, 2004 2:04 am
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
Yup, weather.com has a XML feed, you dont even have to sign up to use it 
first, goto http://xoap.weather.com/search/search?where=XXXXX (change XXXX# to whatever you want weather for; zip code, city, state, or country, etc.)
second, copy the "loc id" from the search results and paste it where YYYYYY is in this url: http://xoap.weather.com/weather/local/YYYYYY
first, goto http://xoap.weather.com/search/search?where=XXXXX (change XXXX# to whatever you want weather for; zip code, city, state, or country, etc.)
second, copy the "loc id" from the search results and paste it where YYYYYY is in this url: http://xoap.weather.com/weather/local/YYYYYY