1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32: |
<?
$loc = "http://www.domain.de";
$startstring = "Montag"; //ab dem text im quellcode
$endstring = "21"; //bis zu dem text im quellcode
$file = @fopen ($loc,"r");
if (trim($file) == "") {
echo "Irgendwas ist hier schiefgelaufen";
} else {
$i=0;
while (!feof($file)) {
$zeile[$i] = fgets($file,2000);
$i++;
}
fclose($file);
}
for ($j=0;$j<$i;$j++) {
if ($resultat1 = strstr($zeile[$j],$startstring)) {
$resultat2 = str_replace($startstring, "", $resultat1);
$endstueck = strstr($resultat2, $endstring);
$resultat = str_replace($endstueck,"",$resultat2);
}
}
echo $resultat;
?>
|