我想用的file_get_contents()这个网站有文字,图片获取远程网站的内容,一张我感兴趣的桌子。有对远程站点邻桌:
<table style="width: 100%" class="style36">
<tr>
<td style="width: 25%" class="style38">B3</td>
<td style="width: 60%" class="style38">Las Flores</td>
<td style="width: 15%" class="style38">0</td>
</tr>
</table>
在每个单元的值是动态的,我想查询它们以最快的和更可靠的方式。
我试图限制file_get_contents函数只读取X个字符,但由于页面是动态的,我不能真正知道我的表开始在哪个字符上。
在此先感谢
使用DOM解析器。 – Brad