- 博客(8)
- 收藏
- 关注
转载 laravel中间件的实现原理
中间件的实现原理 运用 array_reduce 以及 call_user_func 实现 interface Middleware { public static function handle(Closure $next); } class VerfiyCsrfToekn implements Milldeware{ public static functi...
2019-09-06 10:07:00
175
转载 cmake 升级
cmake 升级 1下载cmake-3.1.0.tar.gz2、解压 3、执行./configure 4、执行 make 5、执行 sudo make install 6、添加环境变量 # vi /etc/profile // 修改环境变量 //在文件末尾追加以下两行代码 PATH=/usr/cmake/bin:$PATH export PATH # sour...
2019-09-06 09:57:00
145
转载 php-7.3.4 configure: error: Please reinstall the libzip distribution
php-7.3.4 configure: error: Please reinstall the libzip distribution # wget https://libzip.org/download/libzip-1.5.2.tar.gz tar -zxf libzip-1.5.2.tar.gz cd libzip-1.5.2 mkdir build cd build...
2019-09-06 09:56:00
593
转载 php源码安装执行configure报错error: off_t undefined; check your library configuration
php安装执行configure报错error: off_t undefined; check your library configuration vim /etc/ld.so.conf 添加如下几行 /usr/local/lib64 /usr/local/lib /usr/lib /usr/lib64 #保存退出 :wq ldconfig -v # 使之生效 转载于:https...
2019-09-06 09:55:00
384
转载 centos6安装lnmp
centos安装lnmp yum 安装依赖 # yum -y install gcc # yum -y install gcc-c++ # yum -y install autoconf # yum -y install automake 安装开发库 # yum -y install zlib # yum -y install zlib-devel # yum -y install...
2019-09-06 09:54:00
105
转载 php实现算法
二分法查找(已排序) @params $arr 查找的数组 $start 开始查找的下标 $end 结束查找的下标 $value 查找的值 function bin_search($arr,$start,$end,$value){ if($start<=$end){ //折半查找对比,获取$value落在哪一半的区域 $...
2018-09-12 14:24:00
75
转载 php分页思路
<?php class page{ public $nowPage=1; public $perPage=10; public $showPage=10; public $totalPage; private $startPage=1; private $endPage; private $pageNum;...
2018-02-09 15:57:00
119
转载 window下 php7+apache2搭建
一、下载php7和apache2.4 首先下载php7的windows压缩包,到这里下载http://windows.php.net/download/ Php7VC14 x86 Thread Safe (2015-Dec-03 21:09:17) zip [20.98MB] window下一般用的都是线程安全的,同时要注意php版本是vc14编译的,这意...
2018-02-08 11:36:00
90
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人