上一页 1 2 3 4 5 6 ··· 19 下一页
摘要: tp3.2 1、批量新增或者更新,addAll()方法。 先上测试代码: 测试结果: 1)原来数据库中已经存有一条数据 在执行t1方法后,数据如下, 2)打印出来 执行的sql语句是: 综上, 根据唯一条件,去更新或新增记录。 ps: 注意二维数组data里的,一维数组,字段个数 和顺序要一样,不然 阅读全文
posted @ 2019-01-08 11:03 微风星宇 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 1、高亮查找匹配 查看文档、:h hlsearch 设置高亮、:set hlsearch 或 :se hls 设置不高亮、:set nohlsearch 或 :se hls! 或 :se nohls 阅读全文
posted @ 2018-11-27 22:48 微风星宇 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 普通模式: 1、修改 . 重复上次操作 u 撤销上次修改 2、删除 x 删除光标所在 dd 删除整行 3、缩进 >G ,缩进层级是从当前行到文档末尾处的缩进 4、在光标后进入插入模式 a 5、把光标定位到行尾 $ 6、光标下移一行 j 7、把光标定位到行首 ^ 8、光标定位到行尾,并进入插入模式,光标在行尾... 阅读全文
posted @ 2018-11-27 22:46 微风星宇 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 以下是在macos 下操作: 1、git clone swoole 代码 2、phpize 3、./configure ./configure —with-php-config=‘指定php版本的php-config路径’ 3、make 4、make install Installing share 阅读全文
posted @ 2018-11-24 10:47 微风星宇 阅读(127) 评论(0) 推荐(0) 编辑
摘要: yar 安装 1、将yar gaz 解压后的包 复制到 php ext下, 通过brew 安装的php ext在 /usr/local/Cellar/php71/7.1.13_24/include/php/ext 2、进入到yar目录下 执行/usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/Cellar/... 阅读全文
posted @ 2018-04-06 12:48 微风星宇 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 在mac打开终端: 1.查询php版本 查的PHP版本是: PHP 7.1.13 2.输入命令: 3.找到对应php版本的xdebug: ==> Installing php71-xdebug from homebrew/php ==> Downloading https://homebrew.bi 阅读全文
posted @ 2018-01-31 18:09 微风星宇 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 开机启动nginx 在 /Library/LaunchDaemons/ 目录新建 org.macports.nginx.plist 文件 加载配置:launchctl load -w /Library/LaunchDaemons/org.macports.nginx.plist 开机启动指定php- 阅读全文
posted @ 2018-01-25 17:39 微风星宇 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 进入官网https://brew.sh/index_zh-cn.html 在终端执行 引入tap 安装php 在终端查看版本 安装写扩展 阅读全文
posted @ 2018-01-25 16:14 微风星宇 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 通过brew install php7.1 The php.ini file can be found in: /usr/local/etc/php/7.1/php.ini ✩✩✩✩ Extensions ✩✩✩✩ If you are having issues with custom exten 阅读全文
posted @ 2018-01-20 15:17 微风星宇 阅读(276) 评论(0) 推荐(0) 编辑
摘要: php -i | grep php.ini 查看PHP加载的是哪个配置文件,这个获取的是系统内的php.ini 的位置。不是网页apache加载的php.ini文件 添加变量默认php版本 export PATH="/usr/local/Cellar/php71/7.1.13_24/bin:$PAT 阅读全文
posted @ 2018-01-20 15:09 微风星宇 阅读(365) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 19 下一页