Hi. I need to get data from another site. There's a string in the HTML source code of the page:
<TD ROWSPAN="2"><div>SOME STATIC DATA</TD> <TD ROWSPAN="2" bgcolor="#CCFFCC" width=20%><div>SOME DYNAMCI DATA</TD>
I use the following code to get it:
$dosya=fopen("hava.htm","r");
$dosya_oku=fread($dosya,10000);
fclose($dosya);
$arama = eregi("<TD ROWSPAN=\"2\"><div>SOME STATIC DATA</TD> <TD ROWSPAN=\"2\" bgcolor=\"#CCFFCC\" width=20%><div>(.*)</TD>", $dosya_oku, $sonuc);
echo $sonuc[0];
This echo writes ALL of the remainig page after TD ROWSPAN=\"2\"><div>SOME STATIC DATA</TD> <TD ROWSPAN=\"2\" bgcolor=\"#CCFFCC\" width=20%><div>. But I want to get that DYNAMIC DATA part only. What should I do?