哪里有php网址采集程序?我现在是急用,有哪位高手能告诉我.谢谢!

解决方案 »

  1.   

    <?php 
    $testVar = file("http://www.hao123.com/"); 
    for($i=0;$i<count($testVar);$i++) 

    echo $testVar[$i]; }
    ?>
      

  2.   

    <?php header('Content-Type:text/html;charset=gbk');
    $url = "http://www.265.com"; //目标站
    $fp = @fopen($url, "r") or die("超时");
    $fcontents = file_get_contents($url);
    preg_match_all("/http:\/\/?[^\s]+/i", $fcontents, $regs);
    foreach($regs[0] as $g){
    echo  $g."<br>";
    }?>这是获得网址,但是怎样获得网站名呢?还望各位高手指点
      

  3.   

    看看我这个怎么样http://www.5isp.net