摘要: 1 /** 2 * 发送POST请求 3 */ 4 function doPost2($url, $postdata) { 5 //初始化 6 $curl = curl_init(); 7 // 设置post方式提交 8 curl_setopt($curl, CURLOPT_POST, 1); 9 // 设置抓取的url 10 ... 阅读全文
posted @ 2017-06-19 10:34 lonmy 阅读(10907) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 获取IP 3 * strcasecmp 比较函数 4 */ 5 if (!function_exists('get_ip')) { 6 7 function get_ip($outType = 'int') { 8 if (getenv('HTTP_CLIENT_IP') && strca... 阅读全文
posted @ 2017-06-19 10:29 lonmy 阅读(304) 评论(0) 推荐(0) 编辑