上路抗压,野爹常来

05 2021 档案

摘要:composer安装 composer require phpmailer/phpmailer common.php封装 // 公共发送邮件函数 function sendEmail($desc_content, $toemail, $desc_url){ $mail = new \PHPMaile 阅读全文
posted @ 2021-05-28 10:43 上路抗压 阅读(78) 评论(0) 推荐(0)
摘要:##curl_get public function curl_get($url) { $info = curl_init(); curl_setopt($info,CURLOPT_RETURNTRANSFER,true); curl_setopt($info,CURLOPT_HEADER,0); 阅读全文
posted @ 2021-05-25 16:17 上路抗压 阅读(73) 评论(0) 推荐(0)
摘要:##安装 composer require phpoffice/phpexcel ##引入 use PHPExcel_IOFactory; use PHPExcel; ##使用 /** * 导入excel **/ public function export($data){ //$data参数是要循 阅读全文
posted @ 2021-05-25 16:14 上路抗压 阅读(467) 评论(0) 推荐(0)
摘要:PHP7连接Mongo #PHP7连接mongo protected $conn = null; protected $database = null;//MongoDB数据库名 public function _initialize() { $this->conn = self::getMongo 阅读全文
posted @ 2021-05-25 16:12 上路抗压 阅读(143) 评论(0) 推荐(0)
摘要:##config配置 /*redis链接*/ 'redis' => [ 'default' => [ 'type' => 'redis', 'debug' => true, 'hostname' => '127.0.0.1', 'port' => 6379, 'auth' => '', 'timeo 阅读全文
posted @ 2021-05-20 11:11 上路抗压 阅读(544) 评论(0) 推荐(0)