摘要: 用PHP写了一个检查按txt文档内的url返回状态码的代码,有些烂~~~~ 200";}if ($httpstat==404){ $httpstat= "404";}if ($httpstat==301){ $httpstat= "301";}return $httpstat;curl_close($curl); //用完记得关掉他 }//读取txturl文件按数组输出function showwj($filename){$arrzt = array();$zturl = fopen($filename,'r');while(! 阅读全文
posted @ 2013-07-24 12:02 shot_ma 阅读(233) 评论(0) 推荐(0)
摘要: <?php/*@author Code * e-mail:maxucnvj@163.com * author:maxucnvj * date:2013-06-03 * demo:http://www.fc120.org/updata.php */ /*输出方式0为JSON 其它为JS例表 默认为零*/$sc=0;$sc=(int)$_GET["sc"]; /* 获取显示数目*/$datas=(int)$_GET["value"];if($datas==0){$datas=10; /*默认为10条*/}/*获取日期相差天数*/$dates=(int) 阅读全文
posted @ 2013-06-03 14:30 shot_ma 阅读(184) 评论(0) 推荐(0)