|
[ Partner ]
|
|
|
|
 |
|
[ Autoren gesucht! ]
|
PHP-Homepage.de sucht laufend Autoren für News und Artikel
Interesse?
|
|
 |
|
[Start] [Code eintragen] [Suche] [Neue
Einträge] [Registrierung]
| Bestätigte BSE Fälle nach Bundesländern | <?php
$bse = 0;
$stat = 0;
$lines = file("http://www.bml.de/verbraucher/bse/anzahlbse.htm");
while(list($k, $v) = each($lines)) {
if(strstr($v,">Bundesland<")) {
$bse = 1;
}
if ($bse && strstr($v,"(gesamt)")) {
exit;
}
if ($bse) {
if (preg_match("/<td width=\"80%\"><.+?>(.+)<.+?><\/td>/",$v,$bundesland)) {
echo $bundesland[1].";";
$stat = 1;
}
else if ($stat == 1 && preg_match("/<div align=\"center\"><.+?>(.+)(<.+?><\/div>)*/",$v,$anzahl)) {
echo $anzahl[1]."<br>\n";
}
}
}
?>
|
|