
curl
蜗牛慢慢向上爬
这个作者很懒,什么都没留下…
展开
-
CURL 爬虫,抓取网页并写入文件
<?php//例子1,简单crul获得网页内容,//01 在命令行cmd、//02 cd -d D:\wamp\test//03 php -f curl_url.php/*$curl = curl_init("http://www.baidu.com");curl_exec($curl);curl_close($curl);*///例子2,将请求处理存入文件$curlo转载 2016-03-27 20:55:28 · 6515 阅读 · 1 评论 -
curl get post请求
//多人pk赛 public function getGroupPK($uid,$type){ $data = array('uid'=>$uid,'type'=>$type); $url = STATIC_KG_URL."gamedata?".http_build_query($data); $ch = curl_init($url) ;转载 2016-07-27 13:19:02 · 834 阅读 · 0 评论