【发布时间】:2013-08-13 10:33:35
【问题描述】:
我是 php 新手。
我得到了
致命错误:在非对象错误上调用成员函数 find(),
我包含了 simple_html_dom.php
<?php
include 'simple_html_dom.php';
$htm = file_get_html('http://www.thatscricket.com');
$es = $htm->find('div[class=score_card_display_below_links]');
$value = $es[0]->href;
$link = "http://www.thatscricket.com/$value";
$html = file_get_html('$link');
$scr = $html->find('span');
echo "$scr";
?>
【问题讨论】: