2015年7月16日

curl 显示出头文件,通用

摘要: function Ofapi($url){$ch = curl_init();//初始化curlcurl_setopt($ch,CURLOPT_URL, $url);//提交到指定网页curl_setopt($ch, CURLOPT_HEADER, 0);//设置headercurl_setopt(... 阅读全文

posted @ 2015-07-16 17:08 sinren 阅读(504) 评论(0) 推荐(0)

preg_match 和preg_match_all正则用法

摘要: 例子preg_match('#Location: (.*)#',$data,$str); //正则匹配 阅读全文

posted @ 2015-07-16 16:35 sinren 阅读(161) 评论(0) 推荐(0)

导航