上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 76 下一页
摘要: 在mysql中,有时我们在做数据库查询时,需要得到某字段中包含某个值的记录,但是它也不是用like能解决的,使用like可能查到我们不想要的记录,它比like更精准,这时候mysql的FIND_IN_SET函数就派上用场了,下面来具体了解一下。 FIND_IN_SET(str,strlist)函数 阅读全文
posted @ 2017-03-15 17:43 浮尘微光 阅读(799) 评论(0) 推荐(0)
摘要: (部署项目) zbot deploy developer 【当前的未完成的工作隐藏起来】 git stash ,要恢复的话使用 git stash pop (说明)——— 每次开发一个新的功能,就checkout -b 一个新分支,开发完成后提交上线后就可以删除此分支了 checkout -d . 阅读全文
posted @ 2017-03-13 12:10 浮尘微光 阅读(206) 评论(0) 推荐(0)
摘要: 【附】不分条一次性处理整个文本: 阅读全文
posted @ 2017-03-10 18:51 浮尘微光 阅读(1564) 评论(0) 推荐(0)
摘要: 有如下规则,如果数据表被更改,那么和这个数据表相关的全部Cache全部都会无效,并删除之。这里“数据表更改”包括: INSERT, UPDATE, DELETE, TRUNCATE, ALTER TABLE, DROP TABLE, or DROP DATABASE等。举个例子,如果数据表posts 阅读全文
posted @ 2017-03-10 15:54 浮尘微光 阅读(5790) 评论(0) 推荐(0)
摘要: http://mp.weixin.qq.com/s?__biz=MzIzNjUxMzk2NQ==&mid=2247484743&idx=1&sn=04337e020d268a951139ea1b36e74854&chksm=e8d7fa85dfa07393964671f307159a0a6eb135 阅读全文
posted @ 2017-03-09 14:50 浮尘微光 阅读(6853) 评论(1) 推荐(0)
摘要: sudo vim /etc/php.ini 找到 display_errors = Off ,把Off 改为 On . 最后为 display_errors = On ; 找到 error_reporting = E_ALL & ~E_NOTICE 或者error_reporting = E_ALL 阅读全文
posted @ 2017-03-08 13:58 浮尘微光 阅读(669) 评论(0) 推荐(0)
摘要: php -v brew install homebrew/php/php55-ssh2 【实现方式】 阅读全文
posted @ 2017-03-03 18:11 浮尘微光 阅读(575) 评论(0) 推荐(0)
摘要: 【下载远程文件到本地】 scp -P 6008 root@192.168.1.123:/usr/data/1.zip /Users/abc/www 【上传本地文件到远程】 scp -P 6008 /Users/abc/www root@192.168.1.123:/usr/data/1.zip 阅读全文
posted @ 2017-02-28 15:42 浮尘微光 阅读(6943) 评论(0) 推荐(0)
摘要: function http_post_data($url, $data_string) { $ch = curl_init(); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_P... 阅读全文
posted @ 2017-02-27 15:22 浮尘微光 阅读(2637) 评论(0) 推荐(0)
摘要: git stash 可用来暂存当前正在进行的工作, 比如想pull 最新代码, 又不想加新commit, 或者另外一种情况,为了fix 一个紧急的bug, 先stash, 使返回到自己上一个commit, 改完bug之后再stash pop, 继续原来的工作。基础命令:$git stash$do s 阅读全文
posted @ 2017-02-27 10:04 浮尘微光 阅读(418) 评论(0) 推荐(0)
上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 76 下一页