我想在id = table的div中获取内容 来自http://id.premierleague.com/in-id.html
我找到http://simplehtmldom.sourceforge.net/manual.htm
尝试以下代码获取
require('simple_html_dom.php');
// Create DOM from URL or file
$html = file_get_html('http://id.premierleague.com/in-id.html');
$isi = $html->find("div[id=table]")->plaintext;
echo $isi;
但只看到白屏并发现错误
Notice: Trying to get property of non-object in /var/www/sports90.com/public_html/epl.php on line 43
答案 0 :(得分:0)
试试这个
int main(void)