唠叨大哥请进~~!各位老大请进~~~! 如果不是你们自己的数据库的话,要想获得全部数据很难如果只是需要一部分东西,可以用XMLHTTP试试 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 请讲出具体的方法啊?如从哪入手,什么过程,得到页面后的处理方法等?目标网站是:http://search.wowshell.com/Search.aspx,获取物品、NPC和任务数据,举一个例子即可!分不够可以再加! 寒file_get_contents把数据抓下来,然后自己慢慢分析吧 请问如何对类似<a href=/hehe.php?dkdd>hellworld</a>去它的链接(用正则)?我用preg_replace("/<a href=(.+)>(.+)<\/a>/","\\2",$str)为什么不行呀?还有!我到理到个字符串,它记录的是一个图片的链接,如:http://www.123.com/Partner/0/slogo.gif,我如何把它存放到自己的机器里?保持路径和得到的字符串的路径一致! 还有一个正则问题,见笑了:假设一段字符串或POST来的数据如下: <html><head></head><body><table><tr><td></td></tr></table><table id="hello" height="100%" width="100%"><tr><td>123</td></tr></table><table id="world" bgcolor="#cccccc"><tr><td>456</td></tr></table></body></html>,我想提出此数据中所有有ID的表格的ID,并得到相应的表格,请问该如何写正则式? 1.str = "<a href=/hehe.php?dkdd>hellworld</a>";$reg = "/<a.+href=([\'\"]?)(.+)\\1>/Ui";preg_match_all( $reg, $str, $out ); print_r( $out );2. $str = <<<EOT <html><head></head><body><table><tr><td></td></tr></table><table id="hello" height="100%" width="100%"><tr><td>123</td></tr></table><table id="world" bgcolor="#cccccc"><tr><td>456</td></tr></table></body></html>EOT; $reg = "/<table id=.+<\/table>/Uis"; preg_match_all( $reg, $str, $out ); print_r( $out ); 做什么样的网站好勒?关键是可以偷懒的网站 求助PHP搜索写法 请高手指点! 咨询下关于.htaccess的问题 PHP用curl函数POST请求到ASP页面提示无效请求 将字符串存入mysql前进行了mysql_real_escape_string,取出来的时候怎么把文本转成正常格式呢? 2003Server 搭建 PHP+Apache+MySQL 页面不能能被浏览 如何获得汉字拼音首字母? 寻找兼职PHP程序员共通创业。 为何用户资料无法显示 php的树结构怎么实现。。。。高分奉送。。。。。 PHP数组的读取和操作(100分相送!!) php关于session变量的问题...
目标网站是:http://search.wowshell.com/Search.aspx,获取物品、NPC和任务数据,举一个例子即可!分不够可以再加!
file_get_contents把数据抓下来,然后自己慢慢分析吧
我用preg_replace("/<a href=(.+)>(.+)<\/a>/","\\2",$str)为什么不行呀?还有!我到理到个字符串,它记录的是一个图片的链接,如:http://www.123.com/Partner/0/slogo.gif,我如何把它存放到自己的机器里?保持路径和得到的字符串的路径一致!
<html>
<head></head>
<body>
<table><tr><td></td></tr></table>
<table id="hello" height="100%" width="100%"><tr><td>123</td></tr></table>
<table id="world" bgcolor="#cccccc"><tr><td>456</td></tr></table>
</body></html>
,我想提出此数据中所有有ID的表格的ID,并得到相应的表格,请问该如何写正则式?
str = "<a href=/hehe.php?dkdd>hellworld</a>";
$reg = "/<a.+href=([\'\"]?)(.+)\\1>/Ui";
preg_match_all( $reg, $str, $out );
print_r( $out );
2. $str = <<<EOT
<html>
<head></head>
<body>
<table><tr><td></td></tr></table>
<table id="hello" height="100%" width="100%"><tr><td>123</td></tr></table>
<table id="world" bgcolor="#cccccc"><tr><td>456</td></tr></table>
</body></html>
EOT;
$reg = "/<table id=.+<\/table>/Uis";
preg_match_all( $reg, $str, $out );
print_r( $out );