我想从其他网站获取 div 元素。
我有我的个人资料,我尝试使用此代码。
require_once('../simple_html_dom.php');
$html=file_get_html('http://www.example.com');
$ret=$html->find("div[id=frame-gallery]");
$ret=array_shift($ret);
echo($ret);
但是这段代码给出了错误
警告:require_once(../simple_html_dom.php) [function.require-once]:无法打开流:E:\wamp\www\in.com\components\com_content\view.php 中没有这样的文件或目录在线22
致命错误:require_once() [function.require]:在 E:\wamp\www\in.com\ 中打开所需的 '../simple_html_dom.php' (include_path='.;./includes;./pear') 失败第 22 行的 components\com_content\view.php
我坚持这个请帮助我从网站获取特定 div 元素的代码片段