hello dear community, good day
i have a problem - a parser that does not parse. IT does not work! It gives not back anything!
<?PHP // Original PHP code by Chirp Internet: http://www.chirp.com.au
// Please acknowledge use of this code by including this header.
$url = "http://www.edi.admin.ch/esv/00475/00698/index.html?lang=de";
//$input = @file_get_contents($url) or die("Could not access file: $url");
$input = file_get_contents($url) or die("Could not access file: $url");
$regexp = "<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>";
if(preg_match_all("/$regexp/siU", $input, $matches, PREG_SET_ORDER)) { foreach($matches as $match) {
// $match[2] = all the data i want to collect...
// $match[3] = text that i need to collect - see a detail-page
}
} ?>
well - it goes a bit over my head: "what - i have did" - it does not give back any results!?
i look forward to hear from you!
regards