Re: phpweather: stations.csv parsing script
Brought to you by:
iridium
From: Martin G. <gim...@gi...> - 2004-01-06 14:32:30
|
Eric Vaughan <eva...@pu...> writes: > -Gimpster and phpWeather- > > I downloaded your script for phpweather a few days ago and really > saw potential for its use. Especially with its convenient METAR > data parsing. Yes, that's really the core functionality of PHP Weather. > I have been looking at the stations.csv file and have written a php > script that completely parses out the data and creates a .sql file > to be used to import all of the ICAO codes, countries, stations into > a SQL database (MySQL, of course). Let me know if you are > interested in such a script. Sure, you can upload it as a patch to SourceForge: http://sourceforge.net/tracker/?atid=377954&group_id=23245 but the functionality is already there in PHP Weather, it's just burried in config/make_db.php and the insert_stations functions found in the MySQL, PostgreSQL, etc. backends. -- Martin Geisler My GnuPG Key: 0xF7F6B57B See http://gimpster.com/ and http://phpweather.net/ for: PHP Weather: Shows the current weather on your webpage and PHP Shell: A telnet-connection (almost :-) in a PHP page. |