摘要: ``` function export_csv($filename, $data, $head = '') { $string = $head; foreach ($data as $key => $value) { foreach ($value as $k => $val) { $value[$k] = iconv('utf-8', 'u... 阅读全文
posted @ 2018-03-20 15:23 Thomas_188 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 页面https://www.xx.com(地址A)里xmlhttprequest请求如何一个资源,这个资源的地址和地址A,协议类型,端口,域名任何一个不一致都叫跨域 具有src属性的标签都支持跨域, 阅读全文
posted @ 2018-01-25 21:15 Thomas_188 阅读(97) 评论(0) 推荐(0) 编辑
摘要: git commit amend 可以对上一次的提交做修改 阅读全文
posted @ 2018-01-21 23:45 Thomas_188 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 1.下载 如果PHP版本是7.2以上的必须要下载Xdebug 2.6.0, 因为Xdebug 2.5.5只支持[5.5.0, 7.2.0) checking Check for supported PHP versions... configure: error: not supported. Ne 阅读全文
posted @ 2017-12-11 22:26 Thomas_188 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1. 对varchar, char类型的字段进行排序 2. 把价格设计成decimal的时候,要注意 "有效位数", "小数位数", 不然会发现,插入的时候最多达到上限 阅读全文
posted @ 2017-10-19 13:46 Thomas_188 阅读(304) 评论(0) 推荐(0) 编辑
摘要: ```php $target) { return bin_search($arr, $low, $mid - 1, $target); } else { return bin_search($arr, $mid + 1, $height, $target); } } return false; ... 阅读全文
posted @ 2017-10-06 14:58 Thomas_188 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 常用命令 1. 打tag git tag a v1.1 m '服务器开子进程提供服务,处理多客户端连接' 2.tag推到远程 git push origin v1.1 阅读全文
posted @ 2017-09-27 16:54 Thomas_188 阅读(76) 评论(0) 推荐(0) 编辑
摘要: brew install homebrew/php/php56 with apache 报错: checking if the location of ZLIB install directory is defined... no configure: error: Cannot find libz 阅读全文
posted @ 2017-07-22 01:19 Thomas_188 阅读(2038) 评论(0) 推荐(0) 编辑
摘要: 1.场景 由于我换了一台电脑,为了能访问远程仓库,我就把原来电脑上的私钥和config文件拷贝过来 2.出现问题及解决方案 git clone server:xxx_service_express 报错: 因为我给了config 777权限,改成600就ok了(sudo chmod 600 conf 阅读全文
posted @ 2017-07-21 11:19 Thomas_188 阅读(1300) 评论(0) 推荐(0) 编辑
摘要: 1.配置交换机,队列,然后绑定 2.生产者 3. 消费者 note: 一般是这样操作的,运维把$conn_args配好,运行一次脚本1, 然后生产中执行脚本2,3来生产和消费。 阅读全文
posted @ 2017-06-30 16:00 Thomas_188 阅读(1127) 评论(0) 推荐(1) 编辑