CVS: phpweather test.php,NONE,1.1
Brought to you by:
iridium
From: Max H. <ir...@us...> - 2002-03-24 16:40:44
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv24817 Added Files: test.php Log Message: A file to make testing weather parsing easier and quicker for developers. --- NEW FILE --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>PHPWeather test configuration file</title> </head> <body> <?php error_reporting(E_ERROR); /* Checkpoint, we store the time */ $time[] = array(microtime(), 'start'); require('phpweather.php'); require('pw_utilities.php'); $weather = new phpweather(array()); $weather->set_metar('EGBE 241450Z 18030KT 140V230 9000 FEW025 M10/M15 Q1032'); $language = "en"; include(PHPWEATHER_BASE_DIR . "/output/pw_text_$language.php"); $type = 'pw_text_' . $language; $text = new $type($weather, array()); $text->print_pretty(); ?> </body> </html> |