会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
盘思动
三思而后折腾!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
108
109
110
111
112
113
114
115
116
···
133
下一页
2018年9月11日
tp5.1 高级查询之 表里2字段比较大小
摘要: $map = [ 'status' => 1, 'is_show' => 1,];$result = Db::name('coupon') ->where($map) ->where('total_number','exp',Db::raw('>`send_number`')) ->whereTim
阅读全文
posted @ 2018-09-11 11:57 盘思动
阅读(2238)
评论(0)
推荐(0)
2018年9月9日
tp5.1 redis 使用
摘要: 第一步:在框架根目录config里面新建redis.php文件配置ip及端口:如下: 第二步:在根目录extend里新建module目录,并在其里面建Redis.php文件,文件内容如下: 第三步:在项目根目录thinkphp目录里helper.php里设置redis助手函数,加入如下内容: 第四步
阅读全文
posted @ 2018-09-09 18:15 盘思动
阅读(8048)
评论(1)
推荐(0)
2018年9月8日
ajax的坑
摘要: $('#mkcode').on('click',function(){ $.ajax({ type : 'POST', url : '__URL__/mkcode', data : {}, dataType: 'json', //~~这里是dataTye 写成datatye 或没写json会接受不到
阅读全文
posted @ 2018-09-08 15:29 盘思动
阅读(281)
评论(0)
推荐(0)
2018年9月7日
tp 用group去重
摘要: $baseGoodIds_arr = [1,2,3,4,5,6,7,8,9];$relate_gimgs = D('GoodsImages')->where(['good_id' => ['in',$baseGoodIds_arr]])->limit($gimgs_limit)->group('we
阅读全文
posted @ 2018-09-07 17:48 盘思动
阅读(1794)
评论(2)
推荐(0)
读取图片字节大小
摘要: //获取图片大小 public function getimgweight(){ $url = 'http://cdn.caomall.net/1536240025614144138.jpeg'; $len = $this->getUriLen($url); echo $len;exit; } fu
阅读全文
posted @ 2018-09-07 11:24 盘思动
阅读(809)
评论(0)
推荐(0)
2018年9月6日
linux操作系统位数
摘要: 方法1:getconf LONG_BIT 查看 如下例子所示: 32位Linux系统显示32, 64位Linux系统显示64。最简单、快捷的方法。 [root@DB-Server ~]# getconf LONG_BIT
阅读全文
posted @ 2018-09-06 17:49 盘思动
阅读(248)
评论(0)
推荐(0)
2018年8月30日
查看数据库表格大小
摘要: SELECT TABLE_NAME,DATA_LENGTH+INDEX_LENGTH,TABLE_ROWS FROM information_schema.TABLES WHERE TABLE_SCHEMA='hx'; + + + +| TABLE_NAME | DATA_LENGTH+INDEX_
阅读全文
posted @ 2018-08-30 18:53 盘思动
阅读(327)
评论(2)
推荐(0)
2018年8月29日
阿里域名备案
摘要: https://jingyan.baidu.com/album/b0b63dbf068bde4a483070f7.html?picindex=1
阅读全文
posted @ 2018-08-29 16:28 盘思动
阅读(172)
评论(0)
推荐(0)
2018年8月28日
我们使用git checkout 将B分支上的部分页面代码 添加或覆盖到A分支上
摘要: $ git branch * A B $ git checkout B message.html message.css message.js other.js $ git status # On branch A # Changes to be committed: # (use "git reset HEAD ..." to unstage) # # ...
阅读全文
posted @ 2018-08-28 16:00 盘思动
阅读(973)
评论(1)
推荐(0)
2018年8月25日
百度语音合成 composer
摘要: https://packagist.org/packages/jormin/baidu-speech http://ai.baidu.com/docs#/TTS-Online-PHP-SDK/top
阅读全文
posted @ 2018-08-25 18:28 盘思动
阅读(336)
评论(0)
推荐(0)
上一页
1
···
108
109
110
111
112
113
114
115
116
···
133
下一页
公告