- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 163邮箱利用phpmailer发送邮件
<?phpheader("content-type:text/html;charset=utf-8");ini_set("magic_quotes_runtime",0);require 'class.phpmailer.php';function sendemail($to,$subject,$body){ try { $mail = new PHPMailer(true);
2016-11-28 19:50:30 675 1
原创 QQ邮箱利用PHPmailer发送邮件
require_once("class.phpmailer.php"); $mail = new PHPMailer(); //是否启用smtp的debug进行调试 开发环境建议开启 生产环境注释掉即可 默认关闭debug调试模式 $mail->SMTPDebug = 1; //使用smtp鉴权方式发送邮件$mail->isSMTP(); //smtp需要鉴权 这个必须是true $
2016-11-28 10:31:33 765
原创 curl模拟多线程异步提交
$ch = curl_init($url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_NOSIGNAL, true); //注意,毫秒超时一定要设置这个
2016-11-22 10:48:24 946
原创 curl模拟POST,GET提交
<?php以前一直用php中curl函数,现在做个记录$url = "https://lumos-api.herokuapp.com/customers/link-account";$data = array();$data['customerEmail'] = '123587369@qq.com';$data['deviceId'] = '123456';$header[] = "C
2016-11-22 10:13:08 331
原创 linux crontab 实现每隔几秒执行
1、首先编写shell脚本 如下:#!/bin/bashstep=2 #间隔的秒数,不能大于60 for (( i = 0; i $(curl 'localhost:8080') sleep $stepdoneexit 0step 为60的约数时 在crontab -e编辑的时候如下:* /1 * * * * /va
2016-11-03 10:03:03 6732
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人