ob_start();//清空缓冲区header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Methods:POST, GET, OPTIONS, PUT, DELETE'); header('Access-Cont Read More
posted @ 2018-05-09 17:49 fantasy0810 Views(3414) Comments(0) Diggs(0)
如果要使用DB门面,应该取消bootstrap/app.php文件中$app->withFacades()调用前的注释 http://laravelacademy.org/post/455.html#ipt_kb_toc_455_1 Read More
posted @ 2018-03-16 11:01 fantasy0810 Views(796) Comments(0) Diggs(0)
在PHP环境中添加redis拓展包:D:\web\php-7.1.0-nts-Win32-VC14-x64\ext\php_redis.dll 在D:\web\php-7.1.0-nts-Win32-VC14-x64\php.ini添加拓展: [redis]extension=php_redis.d Read More
posted @ 2018-02-09 14:59 fantasy0810 Views(117) Comments(0) Diggs(0)
posted @ 2018-02-06 11:22 fantasy0810 Views(221) Comments(0) Diggs(0)
下载:http://www.runoob.com/memcached/window-install-memcached.html 打开命令提示符,进入到memcached所在目录。 输入memcached -d install 如果没有报错说明安装成功 输入memcached -d install Read More
posted @ 2017-09-29 15:37 fantasy0810 Views(240) Comments(0) Diggs(0)
bootstrap/app.php 大概26行,去掉注释:$app->withFacades(); 增加缓存项: Cache::put( 'key', 'value', $Cachetime ); 在缓存中增加一个不存在的缓存项: Cache::add( 'key', 'value', $cache Read More
posted @ 2017-09-29 14:44 fantasy0810 Views(992) Comments(0) Diggs(0)
php更新版本后使用FTP上传文件需要确认FTP是否开启 报错信息: 方案:检查php.ini,开启extension=php_ftp.dll。 Read More
posted @ 2017-07-28 18:26 fantasy0810 Views(1106) Comments(0) Diggs(0)
系统默认日志: use Log; Log::info('hello'); 自定义日志:可以存入数据库再读取 Read More
posted @ 2017-07-20 15:16 fantasy0810 Views(199) Comments(0) Diggs(0)