Services_Weather_Metar::setMetarSource() – Sets the source, where the class tries to locate the METAR data


require_once '/Weather/Metar.php';

void Services_Weather_Metar::setMetarSource ( string $source , string $sourcePath = "" )


Source can be http, ftp or file. An alternate sourcepath can be provided.


string $source

string $sourcePath


No exceptions thrown.


This function can not be called statically.

Sets the parameters needed for connecting to the DB, where the location- search is fetching its data from. You need to build a DB with the external tool buildMetarDB first, it fetches the locations and airports from a NOAA-website. (Previous) PEAR::Services_Weather_Weatherdotcom (Next)
Last updated: Wed, 25 Nov 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.