05 2021 档案
摘要:composer安装 composer require phpmailer/phpmailer common.php封装 // 公共发送邮件函数 function sendEmail($desc_content, $toemail, $desc_url){ $mail = new \PHPMaile
阅读全文
摘要:##curl_get public function curl_get($url) { $info = curl_init(); curl_setopt($info,CURLOPT_RETURNTRANSFER,true); curl_setopt($info,CURLOPT_HEADER,0);
阅读全文
摘要:##安装 composer require phpoffice/phpexcel ##引入 use PHPExcel_IOFactory; use PHPExcel; ##使用 /** * 导入excel **/ public function export($data){ //$data参数是要循
阅读全文
摘要:PHP7连接Mongo #PHP7连接mongo protected $conn = null; protected $database = null;//MongoDB数据库名 public function _initialize() { $this->conn = self::getMongo
阅读全文
摘要:##config配置 /*redis链接*/ 'redis' => [ 'default' => [ 'type' => 'redis', 'debug' => true, 'hostname' => '127.0.0.1', 'port' => 6379, 'auth' => '', 'timeo
阅读全文

浙公网安备 33010602011771号