摘要:
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. # 阅读全文
2017年12月28日
2017年8月28日
摘要:
最近看到这个“算法”题,其实在解题过程中并没有发现过多算法。 解题思路: 在1,2...9 插入运算符(+ - 或者没有),1到9有8个空位,每个空位有三种可能性,也就是3^8种。 运用PHP的弱类型特性,以及强大的数组, 我们只需要将每个有运算符的数字放入数组中即可。 比如: ["1," "+23 阅读全文
2017年8月7日
摘要:
find . -path ./vendor -prune -o -name "*.php" -or -name "*.css" -or -name "*.js" | xargs grep -v "^$"| wc -l 阅读全文
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. 阅读全文
2017年2月28日
摘要:
Enjoy it. A widget for uploading files to your server. Github , Packagist Screenshots 阅读全文
2016年6月13日
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... 阅读全文
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... 阅读全文
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... 阅读全文
2014年12月10日
摘要:
Friendly file size string 1 public static function bytesToSize($bytes) 2 { 3 if ($bytes 0) { 8 return sprintf("%02d:%02d:%02d", $... 阅读全文