【发布时间】:2011-03-14 12:31:09
【问题描述】:
我想从其他网站获取 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);
但是这段代码出错了
警告: 需要一次(../simple_html_dom.php) [function.require-once]:未能 打开流:没有这样的文件或目录 在 E:\wamp\www\in.com\components\com_content\view.php 在第 22 行
致命错误:require_once() [function.require]:打开失败 需要'../simple_html_dom.php' (include_path='.;./includes;./pear') 在 E:\wamp\www\in.com\components\com_content\view.php 在第 22 行
我坚持这个请帮助我使用代码 sn-ps 从网站获取特定的 div 元素
【问题讨论】:
标签: php include require-once