'; $url = "http://forms.mpsv.cz/uir/view.jsp?D=Verze_42"; $br = new browser; if(!$data = $br->request($url)) return ajax_ret(0, 'Nepodarilo se otevrit URL'); if(!$data = strcut($data, '')) return ajax_ret(0, 'Nenalezena tabulka s vypisem souboru'); if(!preg_match_all('|(.+)|Usm', $data, $match)) return ajax_ret(0, 'Nepodarilo se nalezt radky tabulky'); // Remove first three rows $rows = $match[1]; array_splice($rows, 0, 3); array_pop($rows); // And last one $rows = array_reverse($rows); // Read rows $updates = 0; foreach($rows as $k => $row) { if(!preg_match('|.*\s*\s*(?[0-9.]+)\s*\s*\s*(?