Project——structure——Modules——Web——选择项目目录
ThinkPHP5.1 源码分析 转
类的自动加载:https://zhuanlan.zhihu.com/p/100682759 配置文件Config类:https://zhuanlan.zhihu.com/p/100710197 容器Container类:…
ThinkPHP5.1 源码分析(五)- 框架执行流程 转
转自:https://zhuanlan.zhihu.com/p/100640786 从代码说起: // 入口文件 // 执行应用并响应 Container::get('app')->run()->send()…
详解tp5.1入口文件index.php的执行过程 转
运行了public目录下的index.php文件后,tp的运行整个运行过程的解析 入口文件index.php代码如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20…
ThinkPHP5 ---基础篇(Request和Response) 转
转自https://blog.csdn.net/donglingjiu/article/details/80673370
Thinkphp 6.0中间件使用详解 转
转自https://blog.csdn.net/maysh2008/article/details/106357578 6.0中间件分为系统中间件和应用中间件,系统中间件为核心框架内置的中间件,应用中间件是在应用里面创建…
layui中upload上传文件并传递参数 转
layui中upload传参方式: 使用layui写文件上传功能,需要传入id和tablename两个参数 layui.upload.render({ elem:'#id', url:'接口路径', accept:'fi…
实战,利用apache来做集群,实现负载均衡 转
以前用ha,lvs做过负载均衡,我知道apache可以做负载均衡,一直没有做。所以今天我尝试用apache做了一次负载均衡。感觉还可以,以后如果有公司非要让我用apache来做负载均衡,也不要花很多时间去研究了。 一,查…
用PHP解决WEB的高并发分布式架构 转
转自https://blog.csdn.net/qq_34284638/article/details/102897676 一般来说,解决WEB高并发的有效手段都是采用可线性扩展的多层分布式架构 Webserver (N…
tp5 模板中调用switch的写法
{switch name="变量" } {case value="值"}值1{/case} {case value="值"}值2{/case} {case value="值"}值3{/case} {default /}默…
如何判断一个请求是否为ajax
转自https://blog.csdn.net/j080624/article/details/73775835/ AJAX请求中主要对象(原生对象)是XMLHttpRequest 转自https://bl…
layui中获取全选id值
var checkStatus = table.checkStatus('dataTable'),data = checkStatus.data; if(data.length < 1){ layer.alert(…
layui的模板中,table表格的时间戳转换为日期格式的方法 转
layui.use('table', function(){ var table = layui.table; var util = layui.util; $ = layui.jquery table.…
php curl中文文件名上传问题解决
使用PHP的CurlFile上传文件时,如果上传文件为中文名,接收端是接收不到文件的,curl 的CURLOPT_POSTFIELDS 返回false (原因是 curl_file_create函数读取windows本地…
bootstrap3 图片水平垂直居中
.center-vertical { position:relative; top:50%; transform:translateY(-50%); } <img src="xxx" class="center-v…
Word自动生成目录 转
转自:http://www.wordlm.com/html/6723.html
tp5.1 nl2br使用
tp5.1中模板使用{$str|nl2br}调用nl2br不好用,直接显示<br /> 使用如下方式则可以: {php} echo nl2br($str);{/php}
layui增加必填项前面加*号
.layui-form-label.required:before{ top: 8px; right: 8px; color: red; content: '*'; font-weight: 900; line-heig…
php水印类,支持文字和图片的水印添加
/** * 图片水印类 */ class ImageWater{ /** * 为图片增加水印函数 * @param string $imgSrc 目标图片,可加相对路径 * @param string $markImg …
Flex 布局教程之语法篇 转
转自:http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html 2009年,W3C 提出了一种新的方案----Flex 布局,可以简便、完整、响应式地实现各种页面布…
Window系统中将exe文件设置为自启动的后台服务
sc create 服务名 binPath=d:\xxx\123.exe start=auto
设置.exe文件开机启动
运行“regedit”,编辑注册表 HKEY_LOCAL_MACHINE -- SOFTWARE -- Microsoft -- Windows -- CurrentVersion -- Run 右键Run,新建字符串值…
Windows 安装xxd服务 转
转自:https://www.w3cschool.cn/xuanim/xuanim-7reh316n.html XXD下载地址: https://xuan.im/page/download.html 选择“消息代理服务器…
apache 服务器上多端口访问项目
httpd.conf中#Listen 12.34.56.78:80注释 httpd-vhosts.conf中 Listen 80 <VirtualHost *:80> ServerAdmin webmaste…
解决layui的table在reload之后工具栏按钮失效的问题
转自https://blog.51cto.com/1197822/2472692?source=dra layui.use(['form','layer','table'],function(){ var form = …
【原创】完美解决HTML中footer保持在页面底部问题
制作页面时,footer需要保证在页面最底端,需要达到的效果是,不论页面长短,footer都要在最底部显示,即页面长,滚动到页面末尾时看到footer;页面短,footer则固定在最底部 <div id="cont…
phpmailer 163邮箱发件失败解决方法
邮件发送失败,调试报错:SMTP Error: Could not connect to SMTP host. 163smtp服务器,需要开启SMTP功能,并且设置SMTP授权码,缺一不可,授权码是用来登录邮箱的密码。发…
phpmailer连接不上smtp 转
https://www.bbsmax.com/A/kPzOXn61Jx/ 确认扩展已支持 首先查看PHP环境扩展中是否开启了socket 和openssl扩展,如若没有开启,就在php.ini…
phpmailer6.1使用
转自https://packagist.org/packages/phpmailer/phpmailer use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMaile…
winRAR 破解注册码 转
转自https://blog.csdn.net/qingkaqingka/article/details/88861805 新建一个名为rarreg.key的文件,其中写入 RAR registration data F…

