1 如何在框架中得到下面框架中动态得到的外部网页的HTML
在上面的frame里提交的地方写明target是什么
<form action='aaa.php' target='下面frame的名字'>2 如何取出页面中所有target=gongneng 的链接的链接地址?
$string = '<a href="http://www1.5460.net/gy5460/jsp/login/gongneng.jsp?csid=6081498" target=gongneng>中国人民抗日战争纪念</A>aaa<a href="http://www2.5460.net/gy5461/jsp/login/gongneng.jsp?csid=6081498" target=gongneng>中国人民抗日战争纪念</A>bbb<a href="http://www3.5460.net/gy5462/jsp/login/gongneng.jsp?csid=6081498" target=gongneng>中国人民抗日战争纪念</A>';
preg_match_all('/<A href=\"(.*)\".*target=gongneng.*<\/A>/isU', $string, $stringTemp);
for ($i=0; $i<count($stringTemp[1]); $i++){
echo $stringTemp[1][$i]."<br>";
}
在上面的frame里提交的地方写明target是什么
<form action='aaa.php' target='下面frame的名字'>2 如何取出页面中所有target=gongneng 的链接的链接地址?
$string = '<a href="http://www1.5460.net/gy5460/jsp/login/gongneng.jsp?csid=6081498" target=gongneng>中国人民抗日战争纪念</A>aaa<a href="http://www2.5460.net/gy5461/jsp/login/gongneng.jsp?csid=6081498" target=gongneng>中国人民抗日战争纪念</A>bbb<a href="http://www3.5460.net/gy5462/jsp/login/gongneng.jsp?csid=6081498" target=gongneng>中国人民抗日战争纪念</A>';
preg_match_all('/<A href=\"(.*)\".*target=gongneng.*<\/A>/isU', $string, $stringTemp);
for ($i=0; $i<count($stringTemp[1]); $i++){
echo $stringTemp[1][$i]."<br>";
}
解决方案 »
- Fatal error: Uncaught exception 'Exception' with message 'Could not get reply
- PHP 新手 请教(preg_replace正则式)!!
- php网站问题:连接用户太多
- 有朋友在myspace下开发过应用么?
- php能不能创建目录
- 同一条sql,php程序执行的结果和数据库执行的结果不一样,求解
- 关注2038年问题,比千年虫更严重的问题
- 用模板生产了php文件后,如何保存?鸡毛信
- jpgraph--找不到页面
- 检索问题,大家帮我看看,问题出在哪?
- 100分求助setcookie的问题!!在线等待!!!
- 我想如果没有主页文件,可以目录索引。我把Options Indexes都注释了还是不行,指点指点。
'网志:http://blog.csdn.net/xiaoyaolz
'交个朋友,一起编程,学习,一生的朋友
没有办法,读网页html吧
http://community.csdn.net/Expert/topic/4338/4338855.xml?temp=.4979364