2017年12月28日

摘要: Before the beginning: There are two php version, php5.5, php7.1. we need to install msgpack under php7.1. # "pecl install msgpack" will cause error. # 阅读全文
posted @ 2017-12-28 17:13 技术员 阅读(884) 评论(0) 推荐(0) 编辑

2017年8月28日

摘要: 最近看到这个“算法”题,其实在解题过程中并没有发现过多算法。 解题思路: 在1,2...9 插入运算符(+ - 或者没有),1到9有8个空位,每个空位有三种可能性,也就是3^8种。 运用PHP的弱类型特性,以及强大的数组, 我们只需要将每个有运算符的数字放入数组中即可。 比如: ["1," "+23 阅读全文
posted @ 2017-08-28 15:20 技术员 阅读(1154) 评论(0) 推荐(1) 编辑

2017年8月7日

摘要: find . -path ./vendor -prune -o -name "*.php" -or -name "*.css" -or -name "*.js" | xargs grep -v "^$"| wc -l 阅读全文
posted @ 2017-08-07 10:53 技术员 阅读(101) 评论(0) 推荐(0) 编辑

2017年4月18日

摘要: When we wrote API, those controllers need to implement the following feature: 1. return JSON format data 2. sometimes support JSONP format data also. 阅读全文
posted @ 2017-04-18 17:35 技术员 阅读(496) 评论(0) 推荐(0) 编辑

2017年2月28日

摘要: Enjoy it. A widget for uploading files to your server. Github , Packagist Screenshots 阅读全文
posted @ 2017-02-28 16:51 技术员 阅读(213) 评论(0) 推荐(0) 编辑

2016年6月13日

摘要: Usage: 阅读全文
posted @ 2016-06-13 15:42 技术员 阅读(376) 评论(0) 推荐(0) 编辑

2016年1月25日

摘要: 1. Install ICU from sourcewget http://download.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.tgztar -xzvf icu4c-56_1-src.tgzcd icu/source./configure... 阅读全文
posted @ 2016-01-25 11:06 技术员 阅读(682) 评论(0) 推荐(0) 编辑

2015年5月4日

摘要: Yaf doesn't support PHP 5.6!You may see this:Warning: PHP Startup: yaf: Unable to initialize moduleModule compiled with module API=20121212PHP compil... 阅读全文
posted @ 2015-05-04 13:30 技术员 阅读(753) 评论(0) 推荐(0) 编辑

2015年3月9日

摘要: Yii2 Working with Relational Data at ActiveDataProvidernamespace common\models;use Yii;use yii\base\Model;use yii\data\ActiveDataProvider;use common\m... 阅读全文
posted @ 2015-03-09 09:58 技术员 阅读(833) 评论(2) 推荐(1) 编辑

2014年12月10日

摘要: Friendly file size string 1 public static function bytesToSize($bytes) 2 { 3 if ($bytes 0) { 8 return sprintf("%02d:%02d:%02d", $... 阅读全文
posted @ 2014-12-10 14:48 技术员 阅读(346) 评论(0) 推荐(0) 编辑

导航