Page 1 of 1
weather display automatically
Posted: Wed Oct 13, 2004 10:51 pm
by firestar_lene
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?
Posted: Thu Oct 14, 2004 2:54 am
by phpScott
odds are they will have some code, might be php or might be a html link that you can use. Check it out, otherwise you will need their permission to access their weather data.
Posted: Thu Oct 14, 2004 4:19 am
by twigletmac
Don't steal content without permission - free weather feeds are few and far between. Most will offer a feed (CSV, XML or similar) that you can use so you don't have to take the information directly from the webpages that they use.
Mac
Posted: Thu Oct 14, 2004 5:52 am
by kettle_drum
Preety sure weather.com offers a feed that you can use as long as you sign up - used to be free, dont know if it still is.
Posted: Thu Oct 14, 2004 9:10 am
by vigge89
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