<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[dicuanwei4437的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/dicuanwei4437</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; dicuanwei4437]]></copyright><item><title><![CDATA[把数据库里面的数据导出来csv]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741250</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741250</guid><author>dicuanwei4437</author><pubDate>Tue, 20 Mar 2018 15:23:00 +0800</pubDate><description><![CDATA[function export_csv($filename, $data, $head = '')
{
    $string = $head;
    foreach ($data as $key =&gt; $value) {
        foreach ($value as $k =&gt; $val) {
            $value[$k] = iconv('utf...]]></description><category></category></item><item><title><![CDATA[跨域]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741249</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741249</guid><author>dicuanwei4437</author><pubDate>Thu, 25 Jan 2018 21:15:00 +0800</pubDate><description><![CDATA[页面https://www.xx.com(地址A)里xmlhttprequest请求如何一个资源，这个资源的地址和地址A，协议类型，端口，域名任何一个不一致都叫跨域
具有src属性的标签都支持跨域，  


转载于:https://www.cnblogs.com/wangweiwen/p/8353255.html...]]></description><category></category></item><item><title><![CDATA[git tips]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741248</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741248</guid><author>dicuanwei4437</author><pubDate>Sun, 21 Jan 2018 23:45:00 +0800</pubDate><description><![CDATA[git commit --amend 可以对上一次的提交做修改


转载于:https://www.cnblogs.com/wangweiwen/p/8326101.html]]></description><category></category></item><item><title><![CDATA[xdebug的安装测试]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741247</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741247</guid><author>dicuanwei4437</author><pubDate>Mon, 11 Dec 2017 22:26:00 +0800</pubDate><description><![CDATA[1.下载
php -version
PHP 7.2.0 (cli) (built: Dec  7 2017 23:07:46) ( NTS DEBUG )
如果PHP版本是7.2以上的必须要下载Xdebug 2.6.0, 因为Xdebug 2.5.5只支持[5.5.0, 7.2.0)
checking Check for supported PHP versions... configu...]]></description><category></category></item><item><title><![CDATA[mysql字段设计坑]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741246</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741246</guid><author>dicuanwei4437</author><pubDate>Thu, 19 Oct 2017 13:46:00 +0800</pubDate><description><![CDATA[对varchar, char类型的字段进行排序
把价格设计成decimal的时候，要注意 "有效位数", "小数位数"， 不然会发现，插入的时候最多达到上限



转载于:https://www.cnblogs.com/wangweiwen/p/7692063.html...]]></description><category></category></item><item><title><![CDATA[有序数组的二分查找]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741245</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741245</guid><author>dicuanwei4437</author><pubDate>Fri, 06 Oct 2017 14:58:00 +0800</pubDate><description><![CDATA[&lt;?php
function bin_search($arr, $low, $height, $target)
{
    if ($low &lt;= $height) {
        $mid = intval(($low + $height) / 2);

        if ($arr[$mid] == $target) {
            return t...]]></description><category></category></item><item><title><![CDATA[常用命令]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741244</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741244</guid><author>dicuanwei4437</author><pubDate>Wed, 27 Sep 2017 16:54:00 +0800</pubDate><description><![CDATA[常用命令
1. 打tag
git tag -a v1.1 -m '服务器开子进程提供服务,处理多客户端连接'
2.tag推到远程
git push origin v1.1


转载于:https://www.cnblogs.com/wangweiwen/p/7602662.html...]]></description><category></category></item><item><title><![CDATA[brew安装php和扩展]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741241</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741241</guid><author>dicuanwei4437</author><pubDate>Sat, 22 Jul 2017 01:19:00 +0800</pubDate><description><![CDATA[brew install homebrew/php/php56 --with-apache
报错：
checking if the location of ZLIB install directory is defined... no
configure: error: Cannot find libz
解决：
xcode-select --install 五分钟之后ok
ok
note...]]></description><category></category></item><item><title><![CDATA[git公私钥的拷贝]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741242</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741242</guid><author>dicuanwei4437</author><pubDate>Fri, 21 Jul 2017 11:19:00 +0800</pubDate><description><![CDATA[1.场景
由于我换了一台电脑，为了能访问远程仓库，我就把原来电脑上的私钥和config文件拷贝过来
2.出现问题及解决方案
git clone server:xxx_service_express
报错：
    xxxdeMacBook-Pro:php root# 
    Cloning into 'xxx_service_express'...
    Bad owner or p...]]></description><category></category></item><item><title><![CDATA[php操作rabbitmq]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741243</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741243</guid><author>dicuanwei4437</author><pubDate>Fri, 30 Jun 2017 16:00:00 +0800</pubDate><description><![CDATA[1.配置交换机，队列，然后绑定
&lt;?php
$conn_args = [
    'host' =&gt; '127.0.0.1',  //rabbitmq 服务器host
    'port' =&gt; 5672,         //rabbitmq 服务器端口
    'login' =&gt; 'demo',     //登录用户
    'password' =&gt;...]]></description><category></category></item><item><title><![CDATA[OPcache]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741240</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741240</guid><author>dicuanwei4437</author><pubDate>Tue, 20 Jun 2017 17:48:00 +0800</pubDate><description><![CDATA[1.介绍
OPcache 通过将 PHP 脚本预编译的字节码存储到共享内存中来提升 PHP 的性能， 存储预编译字节码的好处就是 省去了每次加载和解析 PHP 脚本的开销
2.配置
2.1 opcache.validate_timestamps boolean

如果启用，那么 OPcache 会每隔 opcache.revalidate_freq 设定的秒数 检查脚本是否更新。 如果禁...]]></description><category></category></item><item><title><![CDATA[php-fpm进程内存泄漏]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741238</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741238</guid><author>dicuanwei4437</author><pubDate>Fri, 16 Jun 2017 23:40:00 +0800</pubDate><description><![CDATA[线上服务器内存报警
线上web8G内存的服务器，内存几乎吃光，top查看，发现php-fpm进程每个都是几十M，php-fpm配置static, 一共150个
解决
排除过程中，其他机器相同配置都没有发生这个请求，对比配置文件发现，php-fpm.conf中一个max_requests配置的是102400，其他机器配置10240. 猜测是前人手抖多打了个0，
php-fpm进程长时间的工...]]></description><category></category></item><item><title><![CDATA[mysql字符串的隐式转换导致查询异常]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741237</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741237</guid><author>dicuanwei4437</author><pubDate>Fri, 16 Jun 2017 12:36:00 +0800</pubDate><description><![CDATA[如果mysql某个字段(name)类型为varchar, 加了索引，在执行where查询的时候，传入了int的值，这样就会全表扫描，把每一条的值都转换成int（会出现"中国"-&gt;0, "06"-&gt;6, "6"-&gt;6， "hello"-&gt;0）, 然后和传过来的int值匹配，这样是全表扫描，效率很低。

------------------------------ 伟...]]></description><category></category></item><item><title><![CDATA[composer]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741236</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741236</guid><author>dicuanwei4437</author><pubDate>Wed, 07 Jun 2017 23:37:00 +0800</pubDate><description><![CDATA[1.升级
composer self-update


转载于:https://www.cnblogs.com/wangweiwen/p/6959661.html]]></description><category></category></item><item><title><![CDATA[rabbitmq-交换机]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741235</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741235</guid><author>dicuanwei4437</author><pubDate>Sat, 03 Jun 2017 22:48:00 +0800</pubDate><description><![CDATA[四种交换机:
direct
fanout
topic
headers
http://www.jianshu.com/p/469f4608ce5d


转载于:https://www.cnblogs.com/wangweiwen/p/6938795.html]]></description><category></category></item><item><title><![CDATA[php和mysql连接方式(短 长 池)]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741234</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741234</guid><author>dicuanwei4437</author><pubDate>Sat, 03 Jun 2017 14:45:00 +0800</pubDate><description><![CDATA[一个php work进程只能处理一个请求，当完成一个请求了，才能处理下一次的请求
2.短连接：
执行到php关闭mysql连接的代码时，就断开，否则在处理本次请求结束的时候，释放mysql连接
实验：
&lt;?php
    $dbhost = '127.0.0.1';
    $dbdatabase = 'im';
    $username = 'root';
    $userp...]]></description><category></category></item><item><title><![CDATA[git内部原理-第一篇]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741233</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741233</guid><author>dicuanwei4437</author><pubDate>Mon, 29 May 2017 23:28:00 +0800</pubDate><description><![CDATA[本人计划写一些关于《git内部原理》的文章
计划每周一篇


转载于:https://www.cnblogs.com/wangweiwen/p/6919340.html]]></description><category></category></item><item><title><![CDATA[二叉树的遍历]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741232</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741232</guid><author>dicuanwei4437</author><pubDate>Tue, 28 Mar 2017 09:47:00 +0800</pubDate><description><![CDATA[深度优先遍历
class node
{
    public $val;
    public $leftNode;
    public $rightNode;

    public function __construct($val)
    {
        $this-&gt;val = $val;
    }

}

$node5 = new node(6);
$node4...]]></description><category></category></item><item><title><![CDATA[排序_在单调矩阵中查找值]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741231</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741231</guid><author>dicuanwei4437</author><pubDate>Mon, 27 Mar 2017 11:08:00 +0800</pubDate><description><![CDATA[矩阵$arr, 查找是否包含目标值$tg
function a($arr, $n, $tg)
{
    $i = 0;
    $j = $n;
    while (true) {
        if ($tg == $arr[$i][$j]) {
            return "找到了" . $i . '--' . $j;
        } else if ($tg &...]]></description><category></category></item><item><title><![CDATA[mysql联合查询]]></title><link>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741230</link><guid>https://blog.youkuaiyun.com/dicuanwei4437/article/details/101741230</guid><author>dicuanwei4437</author><pubDate>Thu, 16 Mar 2017 17:56:00 +0800</pubDate><description><![CDATA[班级表:
CREATE TABLE `join_test_class` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` char(15) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8

...]]></description><category></category></item></channel></rss>