PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of kz   PHP Weather Wunderground   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Example
Class: PHP Weather Wunderground
Retrieve weather forecast with Wunderground API
Author: By
Last change: add include
Date: 11 years ago
Size: 293 bytes
 

Contents

Class file image Download
<?php

include_once 'weather.php';

$w = new weather();
$w->setLocation('NY', 'New York');
$w->setLang(EN);
echo
$w->getLocation();
echo
'<br/>';
echo
$w->getWeatherIcon(true);
echo
'<br/>';
echo
$w->getTemperature();
echo
' C';
echo
'<br/>';
echo
$w->getSateliteImage(true);
?>