- 昵称:51助手
- 博龄:6年7个月22天
- 粉丝:122
- 关注:108
- +关注
搜索
文章分类
博客档案
tp6跨域添加请求头参数sign
摘要:文件位置:/vendor/topthink/framework/src/think/middleware/AllowCrossDomain.php添加sign参数
tp6多应用路由设置了无效
摘要:例在index 注册路由app/index/route/app.phpRoute::get('index', 'index/index');如果在,注册的路由是有效的/route/app.phpRoute::get('index', 'index/index');解决办法在,绑定对应域
tp6安装过程
摘要:1 composer安装 tp6composer create-project topthink/think tp2 安装多应用composer require topthink/think-multi-app3 重命名exaple.env 为 .e
tp5邮件发送
摘要:主要实现代码<?php namespace tool\emai; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; class Email {
php保留textarea格式的换行与空格
摘要://保留textarea格式 //$str 文本字符串 function textPre($str){ $str = str_replace("\r\n",'<br/>',$str); $str = str_replace("&n
thinkphp6开启多应用模式
摘要:安装框架composer create-project topthink/think tp安装多应用模式扩展composer require topthink/think-multi-app删除 app 目录下的 controller 目录多应用模式部署后,记得删除app目录下的controller目录(系统
The Process class relies on proc_open, which is not available on your PHP i nstallation.
摘要:删除php禁用函数proc_open 就可以了
php 动态逐行输出
摘要:<?php //设置最长执行时间为5分钟 set_time_limit(300); //在循环输出前,要关闭输出缓冲区 ob_end_clean(); for($i=0; $i<100000; $i++){ echo $i.&qu