$html = file_get_html('http://biletyczarterowe.r.pl/');
foreach($html->find('table[id] tr td a') as $element) {
$outer_html = file_get_html($element->href);
$file = fopen(md5($outer_html) . '.html', 'w');
fwrite($file, $html);
fclose($file);
}