chciałbym pobrać ze strony:
http://tm.managerzone.pl/24/index.php?num=2 fragment poniżej:
<table class="l2_tab_big" id="tab_big"> <td colspan="5"> </td> <td colspan="5">Ogółem
</td> <td colspan="5">U siebie
</td> <td colspan="5">Wyjazdy
</td> <td colspan="3">Bezpośrednie
</td>
(...)
<td class="col_10">-51
</td> <td class="col_11">5
</td> <td class="col_12">2
</td> <td class="col_13">0-2-3
</td> <td class="col_14">43:73
</td> <td class="col_15">-30
</td> <td class="col_16">5
</td> <td class="col_17">4
</td> <td class="col_18">1-1-3
</td> <td class="col_19">46:67
</td> <td class="col_20">-21
</td> <td colspan="23">powered by
© <a href="http://tabelkownik.prv.pl">Tabelkownik 1.5
</a></td>
ale mi to nie wychodzi, gdy użyłem:
to strona sie wyświetliła, wiec problem musi być tu:
$pattern = '(<table id="tab_big" class="l2_tab_big">(.*?)<td colspan="23">powered by © <a href="http://tabelkownik.prv.pl">Tabelkownik 1.5</a></td></tr></tbody></table>)';
$ile = preg_match_all($pattern, $result, $matches, PREG_PATTERN_ORDER
);
for ($i=0; $i<count($ile); $i++) {
echo ($matches[0
][$i]) . '<br>'; }
a dokładniej:
$pattern = '(<table id="tab_big" class="l2_tab_big">(.*?)<td colspan="23">powered by © <a href="http://tabelkownik.prv.pl">Tabelkownik 1.5</a></td></tr></tbody></table>)';
wiele prób robiłem, rózne kombinacje ale nic nie wyszło:(