如果不是你们自己的数据库的话,要想获得全部数据很难
如果只是需要一部分东西,可以用XMLHTTP试试

解决方案 »

  1.   

    请讲出具体的方法啊?如从哪入手,什么过程,得到页面后的处理方法等?
    目标网站是:http://search.wowshell.com/Search.aspx,获取物品、NPC和任务数据,举一个例子即可!分不够可以再加!
      

  2.   


    file_get_contents把数据抓下来,然后自己慢慢分析吧
      

  3.   

    请问如何对类似<a href=/hehe.php?dkdd>hellworld</a>去它的链接(用正则)?
    我用preg_replace("/<a href=(.+)>(.+)<\/a>/","\\2",$str)为什么不行呀?还有!我到理到个字符串,它记录的是一个图片的链接,如:http://www.123.com/Partner/0/slogo.gif,我如何把它存放到自己的机器里?保持路径和得到的字符串的路径一致!
      

  4.   

    还有一个正则问题,见笑了:假设一段字符串或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,并得到相应的表格,请问该如何写正则式?
      

  5.   

    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 );