会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
fantasy0810
CnBlogs
Home
New Post
Contact
Admin
Subscription
2018年5月9日
解决H5读取接口的跨域问题
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)
2018年3月16日
lumen使用DB门面
如果要使用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)
2018年2月9日
本地redis配置
在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)
2018年2月6日
php文件去除报头
Read More
posted @ 2018-02-06 11:22 fantasy0810
Views(221)
Comments(0)
Diggs(0)
2017年9月29日
memcache下载安装
下载: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)
lumen cache
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)
2017年7月28日
php更新版本后,在php.ini开启ftp服务
php更新版本后使用FTP上传文件需要确认FTP是否开启 报错信息: 方案:检查php.ini,开启extension=php_ftp.dll。
Read More
posted @ 2017-07-28 18:26 fantasy0810
Views(1106)
Comments(0)
Diggs(0)
2017年7月20日
try catch 日志
系统默认日志: use Log; Log::info('hello'); 自定义日志:可以存入数据库再读取
Read More
posted @ 2017-07-20 15:16 fantasy0810
Views(199)
Comments(0)
Diggs(0)
公告