I have a code that should fetch the information from another webpage. The code find's the page, but I can't make it stop on </table> sign.
Where is the problem?
Here is the code - $fp=fopen("http://www.yle.fi/top40/index.php?page=lista_singlet20","r"); $buffer = fread ($fp, 1000000);
preg_match("|<tr class=\"listRow2\"><td class=\"listRow2\"><span class=\"listIndex\">1.+\<\/table\>|is", $buffer, $regs );
$table = $regs[0];
echo "$table"; -
Thanks for advance Sami
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php