Services_Weather_Metar::setMetarSource

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

Synopsis

require_once '/Weather/Metar.php';

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

Description

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

Parameter

string $source

string $sourcePath

Throws

No exceptions thrown.

Note

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, 01 Oct 2014 — 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.