漂定

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年9月11日

摘要: // 发送邮件$phpmailer = new PHPMailer();$phpmailer->IsSMTP(); // 用smtp协议来发$phpmailer->Host = 'smtp.163.com';$phpmailer->SMTPAuth = true;$phpmailer->Username = '用户名';$phpmailer->Password = '密码';// 发信了$phpmailer->From = '发件人邮箱';$phpmailer->FromName = &# 阅读全文
posted @ 2013-09-11 21:48 漂定 阅读(228) 评论(0) 推荐(0) 编辑

2013年9月8日

摘要: 阅读全文
posted @ 2013-09-08 13:11 漂定 阅读(315) 评论(0) 推荐(0) 编辑

2013年9月5日

摘要: 3D 1 2 3 4 5 6 阅读全文
posted @ 2013-09-05 17:24 漂定 阅读(537) 评论(0) 推荐(0) 编辑

摘要: function getURLToData($url){ $HTTP_Server = $url; $ch = curl_init(); curl_setopt ($ch,CURLOPT_URL,$HTTP_Server); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,30); curl_setopt($ch,CURLOPT_USERAGENT,"Mozilla/5.0 (Linux; U; Android 4.1.1; zh-cn; MI... 阅读全文
posted @ 2013-09-05 16:12 漂定 阅读(1457) 评论(0) 推荐(0) 编辑

摘要: (function ($) { var types = ['DOMMouseScroll', 'mousewheel']; $.event.special.mousewheel = { setup: function () { if (this.addEventListener) { for (var i = types.length; i;) { this.addEventListener(types[--i], handler, false); ... 阅读全文
posted @ 2013-09-05 13:54 漂定 阅读(504) 评论(0) 推荐(0) 编辑

摘要: //animationjQuery.extend({ easing: { // ******* back backEaseIn: function (p, n, firstNum, diff) { var c = firstNum + diff; var s = 1.70158; // default overshoot value, can be adjusted to suit return c * (p /= 1) * p * ((s + 1) * p - s) + firstNum... 阅读全文
posted @ 2013-09-05 13:52 漂定 阅读(238) 评论(0) 推荐(0) 编辑

2013年8月29日

摘要: /** * 获取客户端IP地址 * @param integer $type 返回类型 0 返回IP地址 1 返回IPV4地址数字 * @return mixed */function get_client_ip($type = 0) { $type = $type ? 1 : 0; static $ip = NULL; if ($ip !== NULL) return $ip[$type]; if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $arr = explode(',', ... 阅读全文
posted @ 2013-08-29 15:52 漂定 阅读(306) 评论(0) 推荐(0) 编辑

2013年8月28日

摘要: conn($url); $this->setHeader('Host: '.$this->url['host']); } //设置写请求行 private function setLine($method){ $this->line[0] = $method. ' '.$this->url['path'].'?'.$this->url['query'].' '.$this->ver; } //设置写头信息 public function setHe 阅读全文
posted @ 2013-08-28 14:57 漂定 阅读(430) 评论(0) 推荐(0) 编辑

2013年8月27日

摘要: public class HttpUtil { public static String sendDataByHttpClientGet(String path,String name,String pass){ String result = ""; //1.获取到一个浏览器 HttpClient client = new DefaultHttpClient(); //2.准备请求的地址 try { String arg1 = URLEncoder.encode(name, "utf-8... 阅读全文
posted @ 2013-08-27 14:04 漂定 阅读(275) 评论(0) 推荐(0) 编辑

2013年8月23日

摘要: 日期 全投PV 全投成本 全投效果数 全投单价 直投成本 直投效果数 直投单价 接口成本 接口效果数 接口单价 TQ效果数 400效果数 其它(自产生) 总效果合计 总成本合计 当日流水 当日毛利 var k=0;/**//****************************************************************... 阅读全文
posted @ 2013-08-23 11:11 漂定 阅读(322) 评论(0) 推荐(0) 编辑