Ich hab einen grabber geschrieben, funste dank ua happys hilfe einwandfrei, local, uf den Server leider nicht. No clue.
Noch mal das script.
	
Wiegesagt local( apache) funst alles wunderbar?
An ein xml file ist leider nicht zu kommen.
Vielen dank!
Gruss timepoint5
					Noch mal das script.
PHP-Code:
	
	
 $handle = @fopen('http://www.alpenwelle.de/index.php?mid=incl_wettercam.dat', 'rb');
//$handle = fopen('http://www.', 'r');
if(empty($handle))
{
        echo '<tr> 
          <td bgcolor="#B2C49A" height="150">
          <img src="../img/1px.gif" width="1" height="40"><br><div align="center"><font face=arial 
                  color=#ffffff size=2><b>Aktuelles Wetter leider <br>
              nicht verfügbar.<br> Alpenwelle.de nicht erreichbar.</b><br>
              </font><font face=arial color=#ffffff 
                  size=2> </font></div><br><img src="../img/1px.gif" width="1" height="20">
            </td>';
}
else
{
while (!feof($handle))
{
    $html .= fread($handle, 4096);
}
fclose($handle);
$begin = '<td width="24%" valign="top" align="left">
     <font size="2pt" face="arial" color="#ffffff"><b>Heute';
$end = '<td width="24%" valign="top" align="left">
     <font size="2pt" face="arial" color="#ffffff"><b>Übermorgen';
if(strstr ($html, $begin))// Hier steigt er aus und spuck die fehler meldung aus.
{
$beginloc = strpos($html, $begin) + strlen($begin);
$endloc = strpos($html, $end);
$html = substr($html, $beginloc, $endloc - $beginloc);
$html = str_replace('Radio Alpenwelle, das Informationsradio in der Region-Dateien', "img", $html);
$html = str_replace('</td>', "</div></td>", $html);
$html = str_replace('<td width="24%" valign="top" align="left">
     <font size="2pt"', "<td bgcolor=\"#B2C49A\"> </td><td bgcolor=\"#B2C49A\"><div align=\"center\"><font face=arial", $html);
$html = str_replace("height=4", "height=\"12\"", $html);
$html = str_replace("imgs", "http://www.alpenwelle.de/imgs", $html);
$html = '<td bgcolor="#B2C49A"><div align="center"><FONT face=arial color=#ffffff ><B>Heute</B>' .$html;
echo "$html";
}
else{  // die wird ausgespuckt
        echo '<tr> 
          <td bgcolor="#B2C49A" height="80">
          <img src="../img/1px.gif" width="1" height="80"><br><div align="center"><font face=arial 
                  color=#ffffff size=2><b>Aktuelles Wetter leider <br>
              nicht verfügbar.</b><br>
              </font><font face=arial color=#ffffff 
                  size=2> </font></div><br><img src="../img/1px.gif" width="1" height="20">
            </td>';
}} 
An ein xml file ist leider nicht zu kommen.
Vielen dank!
Gruss timepoint5
 
          
 
  
							
						 
							
						 
 
Kommentar