Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Kacper Zbonikowski  >  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: 1 year 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);
?>