<? 
   header
("Content-type: text/xml"); 
   
header("Connection: Keep-Alive"); 
   
header("Cache-Control: private"); 
?>
<? 
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n"?>
<CiscoIPPhoneText>
    <Title>Weather Forecast</Title>
    <Prompt>Forecast Data from N.O.A.A.</Prompt>

    <Text>
<?php
    $file 
fopen ("http://weather.noaa.gov/pub/data/forecasts/zone/ca/caz047.txt""r");
    if (!
$file) {
        echo 
"<p>Sorry, Unable to access online weather data.\n";
        exit;
    }
    while (!
feof ($file)) {
        
$line fgets ($file1024);
        echo 
"$line";
    }
    
fclose($file);
 
?>
</Text>

    <SoftKeyItem>
        <Name>Update</Name>
        <URL>SoftKey:Update</URL>
        <Position>1</Position>
    </SoftKeyItem>

    <SoftKeyItem>
        <Name>Go Back</Name>
        <URL>SoftKey:Exit</URL>
        <Position>4</Position>
    </SoftKeyItem>
</CiscoIPPhoneText>