Re: [PHP] fopen and preg_match

2003-11-17 Thread Sami Kyösti
Chris Hayes wrote: At 15:07 17-11-03, you wrote: Hi, 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 sign. preg_match("|1.+\<\/table\>|is", $buffer, $regs ); It probably looks for the last table tag. Is that so? Then

Re: [PHP] fopen and preg_match

2003-11-17 Thread Jason Wong
On Tuesday 18 November 2003 00:03, Chris Hayes wrote: > At 15:07 17-11-03, you wrote: > >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 sign. > > > >preg_match("| >class=\"listIndex\">1.+\<\/table\>|is", $buffer, $reg

Re: [PHP] fopen and preg_match

2003-11-17 Thread Chris Hayes
At 15:07 17-11-03, you wrote: Hi, 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 sign. preg_match("|1.+\<\/table\>|is", $buffer, $regs ); It probably looks for the last table tag. Is that so? Then you need to tell the

[PHP] fopen and preg_match

2003-11-17 Thread Sami Kyösti
Hi, 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 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, 100); preg_match("|