跪求随机访问指定网页的代码~~大家帮帮忙~小女子谢过了~~要求(一)可以随机访问指定的某些网页如从http://www.www.cn/html/suibidubai/20071018/100.html到http://www.www.cn/html/suibidubai/20071018/1000.html中随机读取一个网页访问~   谢谢大家了~~

解决方案 »

  1.   

    $seedarray =microtime(); 
    $seedstr =split(" ",$seedarray,5); 
    $seed =$seedstr[0]*10000; 
    srand($seed); 
    $random =rand(100,1000); 
    $url = "http://www.www.cn/html/suibidubai/20071018/".$random.".html";
    $content = file_get_contents($url);
      

  2.   

    同意楼上,不过你的代码好像
    $random =rand(100,1000);  
    $url = "http://www.www.cn/html/suibidubai/20071018/".$random.".html"; 
    $content = file_get_contents($url);
    这三句就够了,上面三句有啥用?