摘要:
// 发送邮件$phpmailer = new PHPMailer();$phpmailer->IsSMTP(); // 用smtp协议来发$phpmailer->Host = 'smtp.163.com';$phpmailer->SMTPAuth = true;$phpmailer->Username = '用户名';$phpmailer->Password = '密码';// 发信了$phpmailer->From = '发件人邮箱';$phpmailer->FromName = 阅读全文
摘要:
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... 阅读全文
摘要:
(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); ... 阅读全文
摘要:
//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... 阅读全文
摘要:
/** * 获取客户端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(',', ... 阅读全文
摘要:
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 阅读全文
摘要:
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... 阅读全文
摘要:
日期 全投PV 全投成本 全投效果数 全投单价 直投成本 直投效果数 直投单价 接口成本 接口效果数 接口单价 TQ效果数 400效果数 其它(自产生) 总效果合计 总成本合计 当日流水 当日毛利 var k=0;/**//****************************************************************... 阅读全文