随笔分类 - PHP
摘要:
Quick reference Maintained by: the Docker Community Where to get help the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow S
阅读全文

摘要:PHP-FPM 的运作模式 在聊协程是什么之前,我们先聊聊传统 PHP-FPM 架构的运作模式,PHP-FPM 是一个多进程的 FastCGI 管理程序,是绝大多数 PHP 应用所使用的运行模式。假设我们使用 Nginx 提供 HTTP 服务(Apache 同理),所有客户端发起的请求最先抵达的都是
阅读全文
摘要:
PHP添加$_SERVER服务器环境变量 通过nginx的fastcgi_param来设置 通过php主配置文件php-fpm.conf来设置 通过Apache设置环境变量 NGINX 设置 通过nginx的fastcgi_param来设置 在nginx配置文件中,可以在nginx总体的配置文件ng
阅读全文

摘要:
使用宝塔面板部署项目注意事项 No input file specified 解决方法👍 “No input file specified.”原因在于使用的PHP5.6是fast_cgi模式,而在某些情况下,不能正确识别path_info所造成的错误。默认的.htaccess里面的规则 “No i
阅读全文

摘要:
由于网络原因yii2 模板通过composer安装, 经常出现网络超时等错误,特此留下模板的下载链接 yii-basic-app-2.0.46.tgz 链接: https://pan.baidu.com/s/15xEohSh0N9MsyI34OoPlrw?pwd=jfa2 提取码: jfa2 yii
阅读全文

摘要:
laravel 安装器安装失败 windows laravel 安装器安装laravel gitbash 运行 laravel new blog-app 出错提示: composer is not recognized as an internal or external command, oper
阅读全文

摘要:
PHP74 Remi软件源安装向导 Remi's RPM repository 官网 http://rpms.remirepo.net/ 国内清华镜像 https://mirrors.tuna.tsinghua.edu.cn/remi/ 仓库设置和php安装向导 https://rpms.remir
阅读全文

摘要:
在CentOS 7系统上安装PHP 7.4 添加EPEL和REMI存储库和软件源 yum -y install epel-release yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm 安装YUM管理工具
阅读全文

摘要:
RabbitMQ-发布订阅 https://www.rabbitmq.com/tutorials/tutorial-three-php.html Exchanges In previous parts of the tutorial we sent and received messages to
阅读全文

摘要:
RabbitMQ-工作队列 https://www.rabbitmq.com/tutorials/tutorial-two-php.html Message acknowledgmen Message acknowledgments were previously turned off by our
阅读全文

摘要:
nginx 配置 worker_processes auto; worker_rlimit_nofile 65536; events { worker_connections 20480; multi_accept on; use epoll; } http { include mime.types
阅读全文

摘要:
PHP 数组 array_merge 和 数组 + 加号操作的区别 php中我们常使用array_merge() 函数, 用来合并两个数组,例如: $a3 = array_merge($a1, $a2); 但是php中两个数组还可以直接使用操作符加号(+)相加, 例如: $a4 = $a1 + $a
阅读全文

摘要:
让PHP7达到最高性能的几个Tips 转载 风雪之隅 : https://www.laruence.com/2015/12/04/3086.html PHP7已经发布了, 作为PHP10年来最大的版本升级, 最大的性能升级, PHP7在多放的测试中都表现出很明显的性能提升, 然而, 为了让它能发挥出
阅读全文

摘要:
PHP7新特性及优化 参考链接: https://www.cnblogs.com/songgj/p/10398076.html 1. 概述 php7.x增加的新特性介绍可以参考这里: https://www.runoob.com/php/php7-new-features.html https://
阅读全文

摘要:
深入理解PHP原理之Opcodes 转载 风雪之隅 : https://www.laruence.com/2008/06/18/221.html 1. 概述 这个文章基于 Sara Golemon大师的《Understanding OPcode》Opcode是一种PHP脚本编译后的中间语言,就像Ja
阅读全文

摘要:
PHP Spreadsheet 导出 excel 服务封装 概述 SpreadSheet Packagist 仓库地址 PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine
阅读全文

摘要:
1. 对象序列化 1.1 serialize() 和 unserialize() 所有php里面的值都可以使用函数serialize()来返回一个包含字节流的字符串来表示。unserialize()函数能够重新把字符串变回php原来的值。 序列化一个对象将会保存对象的所有变量,但是不会保存对象的方法
阅读全文

摘要:
PHP命名空间 可以更好地组织代码 //Test1.php <?php namespace Test1;//命名空间Test1 function test(){ echo __FILE__; } //Test2.php <?php namespace Test2; //命名空间Test2 funct
阅读全文

摘要:
Excel 数字索引列转字符列 在导入导出Excel的使用过程中, 常会使用到数字索引列转字符列, 例如: 0 ⇒ A ... 25 ⇒ Z 26 ⇒ AA ... 51 ⇒ AZ ... 702 ⇒ AAA ... 以此类推... PHP 实现代码 public function intToCol
阅读全文
