PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Paul Scott   Weather class   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Script
Class: Weather class
Get global weather information from Capescience
Author: By
Last change:
Date: 18 years ago
Size: 392 bytes
 

Contents

Class file image Download
<?php
//Example Script courtesy of Laurent Girard for France Weather

include("weather_class_inc.php");
$w = new weatherservice();
$list = $w->getCountryList();
print_r($list);
echo
"<hr>\n";
$list = $w->searchByCountry('france');
print_r($list);
echo
"<hr>\n";
$list = $w->getWeatherReport('LFMN');
print_r($list);
echo
"<hr>\n";
$text = $w->showAll('LFKB');
echo
"$text";
?>