转自:https://www.cnblogs.com/jinjiangongzuoshi/p/14084094.html 1. 背景 在实际产品开发过程中,某个服务或前端依赖一个服务接口,该接口可能依赖多个底层服务或模块…
分类:PHP
【转载】在PHP中将对象数据写入日志
转自:https://www.cnblogs.com/rxbook/p/10647090.html 有时候在调试项目的时候,需要将一个对象或者对象的实例记录下来观察数据,如果用json_encode可能拿到的是空数据, …
【转载】ThinkPHP5思维导图:
https://blog.csdn.net/weixin_36986228/article/details/88644226 https://blog.csdn.net/qq_41318650/article/detai…
【转载】phpstorm使用代码片段Live Templates
转自:https://www.jianshu.com/p/7d4fffc944e1?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes…
【转载】PSR规范0-4整理
转自:https://www.cnblogs.com/vinter/p/9505154.html PSR规范 psr规范 引言: PSR 是 PHP Standard Recommendations 的简写,由 PHP …
【转载】PHPStorm+XDebug进行调试图文教程
转自:https://www.jb51.net/article/86426.htm 一、XDebug安装配置 (1)下载XDebug下载地址:http://www.xdebug.org/必须下载跟机器上安装的php匹配的…
【原创】Code Sniffer安装并配置phpstorm使用PSR2规范
1.composer下载:https://docs.phpcomposer.com/00-intro.html#Manual-Installation 2.切换镜像:composer config -g repo.pac…
【转载】CGI、FastCGI和PHP-FPM关系图解
转自:https://www.awaimai.com/371.html 在搭建 LAMP/LNMP 服务器时,会经常遇到 PHP-FPM、FastCGI和CGI 这几个概念。如果对它们一知半解,很难搭建出高性能的服务器。…
【转载】nginx upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected
转自:https://www.cnblogs.com/attitudeY/p/6798956.html 更换Apache扑向Nginx,刚搭建完WNMP,nginx能访问php页面 但是访问现有开发项目报错 1 [err…
【原创】lnmp一键安装环境下,运行thinkphp5.1出现404错误
起初仿照默认文件server中的写法,引用的是enable-php.conf,但这个配置不支持tp5的pathinfo形式的url,因此改为引入enable-php-pathinfo.conf即可。 enable-php…
【转载】lnmp open_basedir restriction in effect 错误
转自:https://blog.csdn.net/qq_28450919/article/details/81879521 准备把laravel项目部署到lnmp环境的时候出现了500错误 先开启 php.ini 中的错…
【转载】PHP之内置Web服务器
转自:https://blog.csdn.net/weixin_29408705/article/details/115128200 前言 PHP从5.4开始,就提供了一个内置的web服务器。 这个主要是用来做本地的开发…
【转载】超详细的 Vagrant 上手指南
转自:https://zhuanlan.zhihu.com/p/259833884 搭建 Linux 虚拟机,别再用 VirtualBox 从 .iso 文件安装了。 概述 2020 年了,也许你已经习惯了 docker…
【原创】thinkphp 连接另外一个数据库,及批量更新保存
在config/app.php中添加: 'DB_CONFIG'=>array( // 数据库类型 'type' => 'mysql', // 服务器地址 'hostname' => '127.0.0.1…
【原创】在thinkphp中向另一个数据库批量插入与更新
批量插入1000万条数据: public function insertData(){ set_time_limit(0); ini_set("memory_limit",-1); $startTime = time()…
【转载】MySql 一次数据更新过程(undo redo binlog 内存缓冲池扮演了什么角色)
转自:https://blog.csdn.net/wangxuelei036/article/details/107980101 介绍 本篇博文是自己学习儒猿技术窝)中:《从零开始带你成为MySQL实战优化高手…
【转载】PHP中的自动加载
转自:https://www.cnblogs.com/cqingt/p/8080708.html 补充:https://www.cnblogs.com/fengyumeng/p/7749988.html 或许你已经对自动…
【转载】mysql提示:General error: 1390 Prepared statement contains too many placeholders
转自:https://blog.csdn.net/m0_37865510/article/details/106199152 今天遇到mysql占位符的问题。 问题背景是: 在做一个停车场项目的时候,要导入一个月的停车记…
【原创】nextcloud迁移 问题解决
nextcloud迁移到另一台服务器时,直接迁移的代码和数据库,运行时出现Internet Server Error 排查原因,是因为nc在安装时创建了数据库用户,在config.php中可看到用户名密码,如: 'dbu…
【转载】简单的使用QueryList爬取数据
转自:https://blog.csdn.net/dhywjx/article/details/80716114 最近在整理做过的项目时,发现了曾经的一个好玩的东西,长时间不用都快忘记生疏了,在这里做下总结。在之前的时间…
【原创】使用Querylist爬取网站缩略图
// 采集并将13页列表中的图片下载到本地 public function downloadImages(){ //参数:$path 为图片本地保存路径 $ql = QueryList::getInstance(); $…
【转载】thinkphp5.1框架中__construct和initialize()的区别
转自:https://blog.csdn.net/taotie_/article/details/112043243 onstruct()是php的构造函数,在子类继承父类的时候,需要显示的调用父类的构造函数,默认是不调…
【转载】php常用几种设计模式的应用场景
转自:https://www.cnblogs.com/lxwphp/p/10484661.html 1.单例设计模式 所谓单例模式,即在应用程序中最多只有该类的一个实例存在,一旦创建,就会一直存在于内存中! 单例设计模式…
【转载】解决php报错:failed loading cafile stream: “cacert.pem”
转自:https://www.icode9.com/content-1-963209.html 今天用 Php 查询某个 ip 地址的位置信息时报下面的错: Warning: failed loading cafile …
【转载】将Laravel中的rember_token变为一次性token
转自:https://www.jianshu.com/p/ef7b1bce1e1c 前言 Laravel开箱即用的用户登录注册甚是好用,如果你还不知道如何使用请移步用户认证文档。 但笔者发现一个问题,remeber_to…
修改 Laravel 的登录时『记住我』的过期时间 转
转自:https://learnku.com/laravel/t/40736 简介: 众所周知, Laravel 框架是最受欢迎的几个 PHP 框架之一(2019 最受欢迎的 PHP 框架) . 在您的项目中,您可能正在…
【转载】Laravel 中的Remember Me
转自:https://learnku.com/articles/32712 在 Laravel 为我们提供的默认登录中,为我们提供了 “记住我” 的选项,那么这一逻辑是怎样实现的呢? 登录 首先在 LoginContro…