- 博客(28)
- 收藏
- 关注
转载 CentOs下的lnmp环境安装PHP的APCU拓展
下载源码,解压编译 cd /homw/download/ wget http://pecl.php.net/get/apcu-5.1.17.tgz tar zxvf apcu-5.1.17.tgz cd apcu-5.1.17 phpize ./configure --with...
2019-09-03 11:50:00
459
转载 PHP7新特性
标量类型与返回值类型声明 declare declare(strict_types=1); function returnIntValue(int $value): int { return $value; } print(returnIntValue(5)); ...
2019-09-02 11:24:00
157
转载 laravel学习笔记
artisan命令学习:https://learnku.com/articles/22514laravel5.5 中文文档:https://learnku.com/docs/laravel/5.5/ ...
2019-08-29 15:24:00
126
转载 php二维数组正向自然排序
function sort2DArray($arr, $column){ usort($arr, function($a, $b) use ($column) { return strnatcmp($a[$column], $b[$column]); });...
2019-08-12 15:21:00
242
转载 mysql随机获取n条记录
数据表共 655189 行查询花费 0.0006 秒SELECT * FROMrebate_topic_commentAS t1 JOIN (SELECT ROUND(RAND() * (SELECT MAX(id) FROMrebate_topic_comment)) AS id) A...
2019-07-24 11:08:00
136
转载 查看/修改表引擎
##查看表信息SELECT TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE, ENGINE FROM information_schema.TABLES WHERE TABLE_NAME = 'TEST'##修改表引擎alter table `hb_ne...
2019-07-16 16:56:00
98
转载 算法
例如,有这样一个php取一算法的具体面试题,问题如下:一群猴子排成一圈,按1,2,…,n依次编号。然后从第1只开始数,数到第m只,把它踢出圈,从它后面再开始数,再数到第m只,在把它踢出去…,如此不停的进行下去,直到最后只剩下一只猴子为止,那只猴子就叫做大王。 /** 不踢...
2019-06-04 16:33:00
114
转载 阿里云 CentOS7.2 https快速配置
登陆阿里云账号,进入:SSL证书(应用安全)``购买证书,按要求提交审核,等待签发(半个小时就好)下载证书,一个.pem文件,一个.key文件上传证书,分别上传到nginx/conf/cert/目录下(cert目录自己创建).conf文件配置如果需要同时存在https和htt...
2019-05-05 11:56:00
208
转载 workerman学习笔记
相关链接官网:https://www.workerman.net/手册:http://doc3.workerman.net/640361CentOs上telnet的安装:https://www.cnblogs.com/lixuwu/p/6102444.htmlws在线测试地址: ht...
2019-02-19 10:07:00
119
转载 seaslog学习笔记
安装官网:http://pecl.php.net/package/SeasLog下载链接:http://pecl.php.net/get/SeasLog-1.8.4.tgz安装命令 cd /home/download tar zxvf SeasLog-1.8.4.tgz...
2018-08-27 14:24:00
127
转载 【文档读取】TP5框架下,文档读取代码,可读取html,txt,mht,pdf,docx
/** * 读取文档 * @param $path * @return bool|string */ static public function readDocument($path) { if(!$path) return f...
2018-08-15 14:32:00
1066
转载 【文档读取】pdftotext安装与简易使用
系统 centos7.2安装执行以下命令,如果不能成功安装则执行下一个命令安装yum install pdftotext yum install poppler-utils使用pdftotext 文件绝对路径 [保存路径][保存路径]未写则默认保存在同级文件夹内...
2018-08-10 14:40:00
1605
转载 【文档读取】antiword使用笔记
官网:http://www.winfield.demon.nl/下载链接:http://www.winfield.demon.nl/linux/antiword-0.37.tar.gz安装(我的系统是centos7.2)wget http://www.winfield.demon.n...
2018-08-10 13:58:00
1055
转载 beanstalkd学习笔记
beanstalkd学习笔记 转载于:https://my.oschina.net/wuxueshi/blog/1840497
2018-07-05 09:51:00
114
转载 PHP自定义的函数收集
/** * 判断请求协议是否为https * @return bool */function is_https(){ if (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off...
2018-05-28 10:16:00
87
转载 window上shell脚本放在linux执行报错
方法1对应文本内执行以下命令~:set ff=unix方法2使用dos2unix命令dos2unix test.sh 转载于:https://...
2018-05-23 18:02:00
138
转载 SoapClient failed to load external entity
php7.1环境下报错: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://211.147.239.62/Service/WebService.asmx?wsdl' : failed to load external entity "h...
2018-05-22 13:05:00
426
转载 为github帐号添加SSH keys
ssh-keygen -t rsa -C "625343614@qq.com"默认秘钥保存位置:/c/Users/Administrator/.ssh/id_rsa如何提交本地代码到github打开git bash,切换到对应的目录git clone git@github.c...
2018-05-22 10:58:00
82
转载 gitee的webHook简易设置
php执行的系统用户为www#打开文件vim vim /etc/sudoers#php执行git 命令,添加下行代码到文末www localhost=(ALL) NOPASSWD:/usr/bin/git#生成部署公钥sudo -Hu www ssh-keygen -t rs...
2018-05-22 10:56:00
2013
转载 mysql主从配置
1、初始配置2、master服务器配置vim /etc/my.cnflog-bin=mysql-bin #开启二进制日志server-id = 197 #服务器唯一ID,默认是1,一般取IP最后一段3、slave服务器配置vim /etc/my.cnflog-bin=...
2017-11-14 11:58:00
88
转载 01_递归函数
/** * 二级数组,带字段cate_id,p_id等 * 递归 */ public function recursion($list,$pId=0) { $data = []; foreach ($list as...
2017-10-30 10:38:00
83
转载 Rsa.php
<?phpnamespace app\common;class Rsa{ private $private_key; private $public_key; public function __construct() { $thi...
2017-10-25 17:00:00
179
转载 Aes.php
<?php namespace app\common; class Aes { /** * 常用对称加密算法类 * 支持密钥:64/128/256 bit(字节长度8/16/32) * 支持算法:DES/AES(根据密钥长度自动匹配使用:DES:64bit AES:128...
2017-10-25 16:55:00
115
转载 RedisInstance.php
/** * [@author](https://my.oschina.net/arthor) wxs * */class RedisInstance{ private static $_instance; private static $_connectSource...
2017-10-25 16:52:00
281
转载 AES可逆加密
/** * 数据传输加密方法 * * @param array $data 需要加密的数组 * @param string $key 秘钥,如果为空则使用系统默认的秘钥 * @return boolean|string */...
2017-10-25 16:50:00
369
转载 自定义函数
1、/* * * 多维数组排序,array_multisort($array, $order, $sort)为基础 * @param array $array 需要排序的数组 * @param string $sort_param 需要排序的字段 * @par...
2017-10-25 16:44:00
80
转载 CentOS7安装设置FTP
http://www.centoscn.com/image-text/config/2015/0928/6242.html 转载于:https://my.oschina.net/wuxu...
2017-07-27 23:02:00
84
转载 php函数
随笔array_walk($array, $callback)把数组里面的每一个值键作为回调函数的参数,逐一进行回调array_walk($array, $callback);array_walk_recursive($array, $callback)function my...
2017-07-12 15:16:00
79
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人