跪求随机访问指定网页的代码~~大家帮帮忙~小女子谢过了~~ 跪求随机访问指定网页的代码~~大家帮帮忙~小女子谢过了~~要求(一)可以随机访问指定的某些网页如从http://www.www.cn/html/suibidubai/20071018/100.html到http://www.www.cn/html/suibidubai/20071018/1000.html中随机读取一个网页访问~ 谢谢大家了~~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $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); 同意楼上,不过你的代码好像$random =rand(100,1000); $url = "http://www.www.cn/html/suibidubai/20071018/".$random.".html"; $content = file_get_contents($url);这三句就够了,上面三句有啥用? 请教下preg_match的问题 关于ajax无刷新分页遇到的问题,忘大侠指点!! php的IDE大家都选啥? 怎么解决amfphp输入日期被截掉的问题 php产生唯一标志符的GUID... XP为何装不上apache?请高手指点. 请教超级高手!这些数据是怎么来的,用的什么方法加密的? 加密的sqlite3扩展DLL文件 多选SELECT中的数据如何保存到数据库? session不同页面传送数值 大家有用PHPARTICEL2.01版本吗?我安装后出现这样的错误提示。请各位大大帮忙。 如何读取映射在本机上的文件?
$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);
$random =rand(100,1000);
$url = "http://www.www.cn/html/suibidubai/20071018/".$random.".html";
$content = file_get_contents($url);
这三句就够了,上面三句有啥用?