Version: 1.1

Type: Sample Code (HOWTO)

Category: HTML

License: GNU General Public License

Description: Gets the weather through my site and pastes it to your own site. Pretty neat!



<?php

// Configure
$zip = "21494";
// ---------

$path="http://www.qis.net/~ewhitley/stevenchalker/weather.htm/".$zip."/parse";
$fp=fopen($path,"r");
$read=fread($fp,filesize($path));
fclose($fp);
parse_str($read);
// -------------
/* Like before, use the PHP tags. */
//--------------
?>