2 function get_data($item) {
3 $doc = new DOMDocument();
4 $doc->load('http://weather/weather/all-output.xml');
6 foreach ($doc->getElementsByTagName('weather') as $node) {
8 $item => $node->getElementsByTagName($item)->item(0)->nodeValue,
10 array_push($arrFeeds, $itemRSS);
15 function summon($person,$status) {
16 if ($person == "russ") {
18 $fh = fopen($myFile, 'w') or die("can't open file");
22 if ($person == "beth") {
24 $fh = fopen($myFile, 'w') or die("can't open file");
30 function summon_status($person) {
31 if ($person == "russ") {
33 $fh = fopen($myFile, 'r') or die("can't open file");
34 $status = fread($fh, 5);
37 if ($person == "beth") {
39 $fh = fopen($myFile, 'r') or die("can't open file");
40 $status = fread($fh, 5);