refer:http://php.net/manual/zh/language.oop5.paamayim-nekudotayim.php
In PHP, you use the self keyword to access static properties and metho...
lampnick
7年前 (2018-04-25) 2506℃ 0评论
6喜欢
转自:https://segmentfault.com/q/1010000008208219?sort=created
1、从聚合数据上“获取当前假期列表API”抓取出当年的假期并存储到表里;
2、从stackexchange.com借鉴了一个“计算指定工作日后的日期”的类库,参...
lampnick
8年前 (2017-11-20) 3242℃ 0评论
1喜欢
Mac OS phpize后编译openssl时执行
sudo ./configure --with-openssl --with-php-config=/usr/local/php5631/bin/php-config
报错:
checking for CRYPTO_fr...
lampnick
8年前 (2017-10-27) 10169℃ 0评论
18喜欢
mac os 编译安装php configure时遇到错误
configure: error: Cannot find OpenSSL's <evp.h>
说是没有找到openssl的库,但是openssl已经通过brew install openssl安装好了,于是...
lampnick
8年前 (2017-08-28) 16256℃ 3评论
27喜欢
yii2通过migrate创建RBAC相关表时出错,
yii migrate --migrationPath=@yii/rbac/migrations/
报错:
xxxx>yii migrate --migrationPath=@yii/rbac/migrations/ Y...
lampnick
8年前 (2017-08-22) 4044℃ 0评论
4喜欢
微信支付退款通知接口API 含AES解密,github地址:https://github.com/lampnick/wxpay-refund-notify-decrypt-helper
如果觉得还行,大家给个star,fork一下哦,3KS
使用方法:
微信退款通知解密,消息回复...
lampnick
8年前 (2017-08-10) 5718℃ 0评论
9喜欢
使用PHPOffice的PHPWord的TemplateProcessor生成word时,报word document.xml 名称字符非法位置:部分:/word/document.xml,行:2,列:925564
原因是因为PHPWord的setValue()方法没有对需要替换...
lampnick
8年前 (2017-06-02) 7382℃ 0评论
39喜欢
文章转自:火丁笔记, 风雪之隅
当PHP运行在FastCGI模式时,PHP FPM提供了一个名为fastcgi_finish_request的方法.按照文档上的说法,此方法可以提高请求的处理速度,如果有些处理可以在页面生成完后再进行,就可以使用这个方法.
听起来可能有些茫然,我们...
lampnick
8年前 (2017-06-02) 5757℃ 0评论
3喜欢
<?php
ignore_user_abort(true); // 后台运行,不受前端断开连接影响
set_time_limit(3600); // 脚本最多运行1个小时
//后台运行的后面还要,set_time_limit(0); 除非在服务器上关闭这个程序,否则下...
lampnick
8年前 (2017-05-18) 7544℃ 0评论
9喜欢
PHPExcel中VLOOKUP最后一个值要用数字,不能使用true/false,否则不能写入单元格
//不能像excel那样在VLOOKUP函数中设置true/false,否则会失败,如下红色的0
$zhiyeguwenTelFormula = '=IF(ISNA(VL...
lampnick
8年前 (2017-05-03) 3403℃ 0评论
8喜欢