问下 循环太长超时 帮看看循环能改进下吗? 用set_time_limit,设长点时间试试;你也可试试,把内容取到,再存成一个文件,再对本地存的文件再进行处理 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 you needn't use loops to get the link page contents.you can first use regular expression to get the link url and put into it to db.when you want to use the data of these pages,use file_get_contents(),then you use the function just once. 如果能使用shell_exec的话,shell_exec( ' wget url -o file & ' );这样最快。 zeroleonhart(Strong Point:Algorithm) 读一条抓一条不行吗?再建立个表 分开执行 有些麻烦set_time_limit 时间太长了 设立的话要设个5分钟差不多 一个字符串匹配的问题 网站ico discuz论坛的一个简单查询问题,新手请教顺便散分。。。 请问这个网站的这个栏目的首页的名字和扩展中是什么啊? cakephp 翻页查询如何给条件? php编写的网页中如何实现文本编辑框? PHP如何简单快速获取当前URL地址(包括后面参数) 一个关于session的问题,急等 请教:为什么同样的URL会同时指向不同的IP? 有个session的问题 string转换为UTF8的问题 请问如何读入一个apache indexes跟着输出```
you can first use regular expression to get the link url and put into it to db.when you want to use the data of these pages,use file_get_contents(),then you use the function just once.
这样最快。