我這裏有一些問題,簡單的HTML DOM和捲曲的錯誤
我的代碼是:
<?php
$curl_handle=curl_init();
curl_setopt($curl_handle, CURLOPT_URL,'http://www.website.org');
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_USERAGENT, 'name');
$html = curl_exec($curl_handle);
curl_close($curl_handle);
include_once("simple_html_dom.php");
$element= $html->find("div[class=something]");
echo $element;
?>
,我得到這個錯誤: 致命錯誤第10行的非對象
'include_once( 「simple_html_dom.php」);'請問這個文件做 – Hitesh 2014-09-27 20:18:11