<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[最族]]></title> 
<description><![CDATA[共筑梦想，拥抱未来！
Build a dream, embrace the future!]]></description>
<link>http://www.mostclan.com/</link>
<language>zh-cn</language>
<generator>www.emlog.net</generator>
<item>
	<title>宝塔面板命令行切换PHP版本</title>
	<link>http://www.mostclan.com/post-355.html</link>
	<description><![CDATA[ln -sf /www/server/php/70/bin/php /usr/bin/php ln -sf /www/server/php/70/sbin/php-fpm /usr/bin/php-fpm ln -sf /www/server/php/70/bin/phpize /usr/bin/phpize ln -sf /www/server/php/70/bin/pear /usr/bin/pear ln -sf /www/server/php/70/bin/pecl /usr/bin/pecl <a href="http://www.mostclan.com/post-355.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-194.html">linux系统命令make、clean的用法讲解</a></p><p><a href="http://www.mostclan.com/post-192.html">将Centos的yum源更换为国内的阿里云源</a></p><p><a href="http://www.mostclan.com/post-82.html">虚拟机下CentOS 6.5配置IP地址的三种方法</a></p><p><a href="http://www.mostclan.com/post-85.html">Linux文件类型</a></p><p><a href="http://www.mostclan.com/post-191.html">通过关闭 UseDNS和GSSAPIAuthentication选项加速SSH登录</a></p></div>]]></description>
	<pubDate>Sat, 08 Jan 2022 11:24:31 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-355.html</guid>

</item>
<item>
	<title>SSH快捷登录设置</title>
	<link>http://www.mostclan.com/post-354.html</link>
	<description><![CDATA[客户端 1：打开~/.ssh，如果没有则创建文件夹 2：执行ssh-keygen -t rsa   Enter file in which to save the key：输入保存私钥的文件名称(id_rsa_host)   Enter passphrase (empty for no passphrase): (可以不写)   Enter same passphrase again:(可以不写)   此时会生成：id_rsa_host文件... <a href="http://www.mostclan.com/post-354.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-330.html">乐观锁和悲观锁</a></p><p><a href="http://www.mostclan.com/post-333.html">大小端字节序释义</a></p><p><a href="http://www.mostclan.com/post-203.html">【转发推荐必看】浅谈CSRF攻击方式</a></p><p><a href="http://www.mostclan.com/post-162.html">HTTP Header 详解</a></p><p><a href="http://www.mostclan.com/post-137.html">贪婪匹配和非贪婪匹配</a></p></div>]]></description>
	<pubDate>Fri, 07 Jan 2022 13:33:27 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-354.html</guid>

</item>
<item>
	<title>Selenium WebDriver与RC的差异</title>
	<link>http://www.mostclan.com/post-353.html</link>
	<description><![CDATA[ <a href="http://www.mostclan.com/post-353.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-330.html">乐观锁和悲观锁</a></p><p><a href="http://www.mostclan.com/post-333.html">大小端字节序释义</a></p><p><a href="http://www.mostclan.com/post-203.html">【转发推荐必看】浅谈CSRF攻击方式</a></p><p><a href="http://www.mostclan.com/post-354.html">SSH快捷登录设置</a></p><p><a href="http://www.mostclan.com/post-162.html">HTTP Header 详解</a></p></div>]]></description>
	<pubDate>Fri, 07 Jan 2022 02:50:46 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-353.html</guid>

</item>
<item>
	<title>scanf为什么有时用取地址符，有时不用取址符：&amp;</title>
	<link>http://www.mostclan.com/post-351.html</link>
	<description><![CDATA[转自：http://zhidao.baidu.com/link?url=mV57KbpCkJtQdcXbjFH6q4pWwR5w1XRKI0cURLLEn_ppTjY2PiNv2ripNxlVYNG2wBTyWOQIaX0hIrA55MA0Da 问： char nama[40]; int a; scanf(%s,name); scanf(%d,&a);     这两个都是取得键盘输入内容，为什么一个用了“&”一个没有用？ 答：     因为a是... <a href="http://www.mostclan.com/post-351.html">阅读全文&gt;&gt;</a>]]></description>
	<pubDate>Sun, 26 Dec 2021 09:48:06 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-351.html</guid>

</item>
<item>
	<title>PHP 数组相加问题</title>
	<link>http://www.mostclan.com/post-345.html</link>
	<description><![CDATA[一直以为两个数组相加，第二个数组会覆盖第一个数组相同键的值，今天碰到了个这个问题记录下 数组相加时，第一个已出现的键值不会受到后面相加的数组影响 另外关于array_merge： 当下标为数值时，array_merge()不会覆盖掉原来的值，当下标为字符时，array_merge()此时会覆盖掉前面相同键名的值 <a href="http://www.mostclan.com/post-345.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Wed, 13 Jan 2021 10:57:59 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-345.html</guid>

</item>
<item>
	<title>PHP利用parse_str创建任意多维数组</title>
	<link>http://www.mostclan.com/post-343.html</link>
	<description><![CDATA[回想到从前的一道面试题，使用字符串 arr[0][1][2][3] 将之转换成PHP数组，今天无意间想到 parse_str 可以用作多维数组的反解析，例如想要创造一个多维数组 arr[0][1][2][3]... 维数不定 通过parse_str，我们再配合使用字符串拼接的方式就能轻松组合任意维度的数组  ?php
$floor = '[0][1][2][sub][0]';
parse_str(arr{$floor}=123, $arr);
print_r($arr['arr']);die; //... <a href="http://www.mostclan.com/post-343.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p><p><a href="http://www.mostclan.com/post-176.html">php数组合并array_merge与+的区别</a></p></div>]]></description>
	<pubDate>Thu, 24 Dec 2020 15:14:25 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-343.html</guid>

</item>
<item>
	<title>记gbk、utf-8占用字节数</title>
	<link>http://www.mostclan.com/post-342.html</link>
	<description><![CDATA[计一次面试碰到的基础问题，这类问题还真没有个清晰记忆，汗颜-_-|| GBK： 中文、英文、数字均使用双字节来表示 UTF-8： 汉字占3个字节、数字占1个字节、英文字母占1个字节 <a href="http://www.mostclan.com/post-342.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Mon, 10 Aug 2020 09:50:37 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-342.html</guid>

</item>
<item>
	<title>Laravel生成数据表字典文档</title>
	<link>http://www.mostclan.com/post-341.html</link>
	<description><![CDATA[在写文档的时候需要用到数据表字典数据，一个个建立文档比较麻烦，偷个懒写了个脚本，我这里文档使用的是ShowDoc，因为他连得是SQLite数据库，所以使用时注意添加对应的数据库配置。 Route::get('/resolveSql', function () { $res = DB::select('show tables');
//    echo ' pre '; foreach ($res as $v) { $tableName = $v- Tables_in_loan; $sql       =    EOF
SELECT
-- 	t.TABLE_SCHEMA ... <a href="http://www.mostclan.com/post-341.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Tue, 14 Jul 2020 02:21:59 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-341.html</guid>

</item>
<item>
	<title>PHP 程序员的技术成长规划</title>
	<link>http://www.mostclan.com/post-339.html</link>
	<description><![CDATA[ <a href="http://www.mostclan.com/post-339.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Mon, 22 Jun 2020 15:34:04 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-339.html</guid>

</item>
<item>
	<title>php中的后期静态绑定</title>
	<link>http://www.mostclan.com/post-338.html</link>
	<description><![CDATA[使用的保留关键字： static 定义: static:: 不再被解析为定义当前方法所在的类，而是在实际运行时计算的。也可以称之为“静态绑定”，因为它可以用于（但不限于）静态方法的调用。 self与static的区别: self调用的就是本身代码片段这个类，而static调用的是从堆内存中提取出来，访问的是当前实例化的那个类（即static作用于当前调用的类） 示例一(在静态环境下)  ?php class A { public static function who() { echo... <a href="http://www.mostclan.com/post-338.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Fri, 03 Apr 2020 08:43:59 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-338.html</guid>

</item>
<item>
	<title>PHP 控制和反转</title>
	<link>http://www.mostclan.com/post-337.html</link>
	<description><![CDATA[PHP 很多地方也用到了依赖注入（控制反转），觉得有必要和大家简单聊一聊什么是依赖注入以及怎么使用它。 IoC - Inversion of Control 控制反转 DI - Dependency Injection 依赖注入 依赖注入和控制反转说的实际上是同一个东西，它们是一种设计模式，这种设计模式用来减少程序间的耦合 优势（为什么使用 PHP 的控制和反转） 使用依赖注入，最重要的一点好处就是有效的分离了对象和它所需要的外部资源，使得它们松散耦合，有利于功能复用，更重要的是使得程序的整个体系结构变得非常灵活。 ... <a href="http://www.mostclan.com/post-337.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Thu, 02 Apr 2020 15:30:54 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-337.html</guid>

</item>
<item>
	<title>PHP中phar包的使用</title>
	<link>http://www.mostclan.com/post-336.html</link>
	<description><![CDATA[PHP5.3之后支持了类似Java的jar包，名为phar。用来将多个PHP文件打包为一个文件。 首先需要修改php.ini配置将phar的readonly关闭，默认是不能写phar包的，include是默认开启的。 phar.readonly =  On 创建一个phar压缩包  ?php $phar = new Phar('swoole.phar'); $phar- buildFromDirectory(__DIR__.'/../', '/\.php$/'); $phar- compressFiles(Phar::GZ); $phar- stopBuffe... <a href="http://www.mostclan.com/post-336.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Wed, 01 Apr 2020 07:57:01 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-336.html</guid>

</item>
<item>
	<title>PHP队列SplQueue</title>
	<link>http://www.mostclan.com/post-335.html</link>
	<description><![CDATA[队列（Queue）
异步并发的服务器里经常使用队列实现生产者消费者模型，解决并发排队问题。PHP的SPL标准库中提供了SplQueue扩展内置的队列数据结构。另外PHP的数组也提供了array_pop和array_shift可以使用数组模拟队列数据结构。 SplQueue 
$queue = new SplQueue;
//入队
$queue- push($data);
//出队
$data = $queue- shift();
//查询队列中的排队数量
$n = count($queue); Array模拟队列 <a href="http://www.mostclan.com/post-335.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Sun, 22 Mar 2020 18:53:18 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-335.html</guid>

</item>
<item>
	<title>利用msg_id应对通知业务的去重设计</title>
	<link>http://www.mostclan.com/post-334.html</link>
	<description><![CDATA[情景 <a href="http://www.mostclan.com/post-334.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Wed, 18 Mar 2020 16:47:59 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-334.html</guid>

</item>
<item>
	<title>大小端字节序释义</title>
	<link>http://www.mostclan.com/post-333.html</link>
	<description><![CDATA[经常把字节序搞懵，这里记录一下： 小端字节序（big endian），又称主机字节序（低位在前，高位在后） 因为计算机电路设计优先从低位开始处理效率高，所以又称主机字节序。 $data = pack('L*', 256); // 生成无符号长整型(32位，小端字节序)数据
for ($i = 0; $i   strlen($data); $i++) { echo bin2hex($data{$i}) . ' ';
}
// 00 01 00 00 大端字节序（little endian），又称网络字节序（高位在前，低... <a href="http://www.mostclan.com/post-333.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-330.html">乐观锁和悲观锁</a></p><p><a href="http://www.mostclan.com/post-203.html">【转发推荐必看】浅谈CSRF攻击方式</a></p><p><a href="http://www.mostclan.com/post-354.html">SSH快捷登录设置</a></p><p><a href="http://www.mostclan.com/post-162.html">HTTP Header 详解</a></p><p><a href="http://www.mostclan.com/post-137.html">贪婪匹配和非贪婪匹配</a></p></div>]]></description>
	<pubDate>Tue, 17 Mar 2020 15:33:49 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-333.html</guid>

</item>
<item>
	<title>tp5中使用think-queue</title>
	<link>http://www.mostclan.com/post-332.html</link>
	<description><![CDATA[第一步:买个服务器嘿嘿嘿,装个宝塔玩玩 第二步:下载tp程序 注意tp版本(重要) 第三步:下载think-queue 注意:由于tp6早就出了 默认下载方法并不适用 需要在composer.json添加对应版本 <a href="http://www.mostclan.com/post-332.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p><p><a href="http://www.mostclan.com/post-176.html">php数组合并array_merge与+的区别</a></p></div>]]></description>
	<pubDate>Thu, 12 Mar 2020 02:59:08 +0000</pubDate>
	<author>Battle</author>
	<guid>http://www.mostclan.com/post-332.html</guid>

</item>
<item>
	<title>Mysql 中 MyISAM 和 InnoDB 的区别</title>
	<link>http://www.mostclan.com/post-331.html</link>
	<description><![CDATA[作者：oscarwin 链接：https://www.zhihu.com/question/20596402/answer/211492971 来源：知乎 著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。 区别： 1. InnoDB 支持事务，MyISAM 不支持事务。这是 MySQL 将默认存储引擎从 MyISAM 变成 InnoDB 的重要原因之一； 2. InnoDB 支持外键，而 MyISAM 不支持。对一个包含外键的 InnoDB 表转为 MYISAM 会失败； <a href="http://www.mostclan.com/post-331.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-227.html">MySQL修改root密码的4种方法</a></p><p><a href="http://www.mostclan.com/post-201.html">MySQL中varchar的字符存储长度</a></p><p><a href="http://www.mostclan.com/post-126.html">MySQL的Date,DateTime,TimeStamp和Time数据类型</a></p><p><a href="http://www.mostclan.com/post-129.html">union、union all、Intersect、Minus的使用</a></p><p><a href="http://www.mostclan.com/post-57.html">MySQL数据库基础回顾</a></p></div>]]></description>
	<pubDate>Sat, 29 Feb 2020 07:00:20 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-331.html</guid>

</item>
<item>
	<title>乐观锁和悲观锁</title>
	<link>http://www.mostclan.com/post-330.html</link>
	<description><![CDATA[前言 <a href="http://www.mostclan.com/post-330.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-333.html">大小端字节序释义</a></p><p><a href="http://www.mostclan.com/post-203.html">【转发推荐必看】浅谈CSRF攻击方式</a></p><p><a href="http://www.mostclan.com/post-354.html">SSH快捷登录设置</a></p><p><a href="http://www.mostclan.com/post-162.html">HTTP Header 详解</a></p><p><a href="http://www.mostclan.com/post-137.html">贪婪匹配和非贪婪匹配</a></p></div>]]></description>
	<pubDate>Fri, 28 Feb 2020 16:25:11 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-330.html</guid>

</item>
<item>
	<title>基于PhantomJS的网站截图服务API设计与开发</title>
	<link>http://www.mostclan.com/post-329.html</link>
	<description><![CDATA[为公司某业务实现“服务端对网站截图”功能，搜罗了很多技术最终采用了PhantomJS无头浏览器技术。 什么是PhantomJS？  PhantomJS是一个基于webkit的javaScript API。它使用QtWebKit作为它核心浏览器的功能，使用webkit来编译解释执行javaScript代码。任何你可以基于在webkit浏览器做的事情，它都能做到。它不仅是个隐性的浏览器，提供了诸如css选择器、支持wen标准、DOM操作、json、HTML5等，同时也提供... <a href="http://www.mostclan.com/post-329.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-163.html">手机端常用的报错信息提示</a></p><p><a href="http://www.mostclan.com/post-80.html">屏幕高度笔记</a></p><p><a href="http://www.mostclan.com/post-145.html">解决jquery zclip插件点击无效的问题</a></p><p><a href="http://www.mostclan.com/post-210.html">jQuery 获取当前节点的html包含当前节点的方法</a></p><p><a href="http://www.mostclan.com/post-98.html">返回前一页的两种方法的区别与好处</a></p></div>]]></description>
	<pubDate>Fri, 28 Feb 2020 05:40:55 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-329.html</guid>

</item>
<item>
	<title>php使用redis的有序集合zset实现延迟队列</title>
	<link>http://www.mostclan.com/post-325.html</link>
	<description><![CDATA[延迟队列就是个带延迟功能的消息队列，相对于普通队列，它可以在指定时间消费掉消息。 延迟队列的应用场景： 1、新用户注册，10分钟后发送邮件或站内信。 2、用户下单后，30分钟未支付，订单自动作废。 我们通过redis的有序集合zset来实现简单的延迟队列，将消息数据序列化，作为zset的value，把消息处理时间作为score，每次通过zRangeByScore获取一条消息进行处理。  ?php class DelayQueue
{ protected $prefix = 'delay_queue:... <a href="http://www.mostclan.com/post-325.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Tue, 21 May 2019 15:33:29 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-325.html</guid>

</item>
<item>
	<title>记imagepng在lnmp环境中无法输出保存图片问题</title>
	<link>http://www.mostclan.com/post-323.html</link>
	<description><![CDATA[在网上查阅了很多资料说： 去除BOOM头 用ob_clearn();清除缓存 以上几个都没用，后来突然想起是不是没有权限生成文件？！ 然后ssh登录终端，用chown命令修改目录属主就正常了 = = chown -R www:www ./gd <a href="http://www.mostclan.com/post-323.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Fri, 23 Nov 2018 03:40:07 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-323.html</guid>

</item>
<item>
	<title>关于on点击事件在IOS中失效的问题</title>
	<link>http://www.mostclan.com/post-320.html</link>
	<description><![CDATA[这个是关于使用 $(document).on(‘click‘,selector,function) 在移动端ios中使用on点击事件无效的解决办法 1.将selector元素增加样式cursor:pointer（全场最佳解决方案）   style 
.a{width:100px;height:100px;background:red}
.b{width:10px;height:10px;cursor:pointer}
 /sty... <a href="http://www.mostclan.com/post-320.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-163.html">手机端常用的报错信息提示</a></p><p><a href="http://www.mostclan.com/post-80.html">屏幕高度笔记</a></p><p><a href="http://www.mostclan.com/post-145.html">解决jquery zclip插件点击无效的问题</a></p><p><a href="http://www.mostclan.com/post-210.html">jQuery 获取当前节点的html包含当前节点的方法</a></p><p><a href="http://www.mostclan.com/post-98.html">返回前一页的两种方法的区别与好处</a></p></div>]]></description>
	<pubDate>Sat, 20 Oct 2018 15:46:35 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-320.html</guid>

</item>
<item>
	<title>到底什么是前端工程化、模块化、组件化</title>
	<link>http://www.mostclan.com/post-316.html</link>
	<description><![CDATA[引言 提到前端往往很多人的映像就是入门简单,HTML、CSS加一起一个星期基本上就能大概上手,JS难一点但也能很快写一些简单的小效果,在网上随便一搜索各种特效代码随意用,一个新手前端也能在很短的时间里写出炫酷的页面效果,然而入门简单并不意味着前端这碗饭很好吃,做惯了切图、布局、扣特效的前端新同学在向前发展的路上越来越觉得吃力,而没有任何编程思想和软件开发基础很多人对前端工程化、组件化、模块化、MVC这些“高大上”的词汇云里雾里。 本文用最简单的语言介绍一下我对工程化、组件化、模块化的理解,面向的对象是前端新手,所以我用最好理解的方式去说,难免会有很多“幼稚”的表述,请大神们轻喷。 本文重点介绍思想不涉及过多直接的技术,如... <a href="http://www.mostclan.com/post-316.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-163.html">手机端常用的报错信息提示</a></p><p><a href="http://www.mostclan.com/post-80.html">屏幕高度笔记</a></p><p><a href="http://www.mostclan.com/post-145.html">解决jquery zclip插件点击无效的问题</a></p><p><a href="http://www.mostclan.com/post-210.html">jQuery 获取当前节点的html包含当前节点的方法</a></p><p><a href="http://www.mostclan.com/post-98.html">返回前一页的两种方法的区别与好处</a></p></div>]]></description>
	<pubDate>Tue, 21 Aug 2018 14:39:57 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-316.html</guid>

</item>
<item>
	<title>【原创】PHP纯文本制表</title>
	<link>http://www.mostclan.com/post-315.html</link>
	<description><![CDATA[有个打印机的项目让小V比较头疼：需要打印一个表格，原先是使用ESC/POS指令实现的，但是不同打印机会有兼容性问题，所以小V想自己写一个纯文本的表格，直接打印表格数据以此避免兼容问题，小V昨晚想着想着研究写到两点左右，2333，在此把一些代码分享出来，供广大网友参考！  ?php
/** * PHP纯文本制表 * @author Veris * @blog http://www.mostclan.com * @date 2018.07.20 */ /** * 获取打印字符串长度 * @param  string $str 待计算字符串 * @return integer     长度 */
function get_print... <a href="http://www.mostclan.com/post-315.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Fri, 20 Jul 2018 12:44:19 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-315.html</guid>

</item>
<item>
	<title>记一次Session引起的数据操作漏洞</title>
	<link>http://www.mostclan.com/post-314.html</link>
	<description><![CDATA[php的session id生成方法大致如下： PHPSESSIONID = hash_func(客户端IP + 当前时间（秒）+ 当前时间（微妙）+ PHP自带的随机数生产器) 客户端访问服务器时会自动分配一个session id给客户端（用cookie存储），所以不同浏览器访问都能获得一个不同的session id 问题场景如下： 小V在做的一个项目上有代理提现功能，有天发现客户提现异常了！查看了一下最近的提现日志发现最近两次提现有问题。 代理用户在 11:48 时拥有余额2440余，之... <a href="http://www.mostclan.com/post-314.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Fri, 13 Jul 2018 13:43:26 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-314.html</guid>

</item>
<item>
	<title>【原创】ThinkPHP事务结束问题</title>
	<link>http://www.mostclan.com/post-313.html</link>
	<description><![CDATA[TP5中对事务控制的代码如下： // 启动事务
Db::startTrans();
try{ Db::table('think_user')- find(1); Db::table('think_user')- delete(1); // 提交事务 Db::commit();    
} catch (\Exception $e) { // 回滚事务 Db::rollback();
} 小V在开展项目过程中，在try里为了判断业务使用了return返回，却没有对事务进行提交和回滚，初期并没有发现问题。 后来业务转移到后台命令行cli模式常驻内存执行，引... <a href="http://www.mostclan.com/post-313.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Sun, 01 Jul 2018 13:22:54 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-313.html</guid>

</item>
<item>
	<title>tp5整合GatewayWorker</title>
	<link>http://www.mostclan.com/post-312.html</link>
	<description><![CDATA[1:安装最新的tp5 2:在tp5所在目录,cmd命令输入composer require workerman/gateway-worker- <a href="http://www.mostclan.com/post-312.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Fri, 18 May 2018 01:34:45 +0000</pubDate>
	<author>Battle</author>
	<guid>http://www.mostclan.com/post-312.html</guid>

</item>
<item>
	<title>tp5分页修改为ajax分页</title>
	<link>http://www.mostclan.com/post-310.html</link>
	<description><![CDATA[后台代码 $list = LogRecharge::where('member_id', $id)- order('id desc')- paginate(10, false, ['type' =  'Bootstrap', 'var_page' =  'page', 'path' =  'javascript:ajax_recharge_go([PAGE]);']); $data['list'] = $list; $data['page'] = $list- render(); return json($data); 前端写对应ajax方法即可 <a href="http://www.mostclan.com/post-310.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Wed, 18 Apr 2018 05:47:00 +0000</pubDate>
	<author>Battle</author>
	<guid>http://www.mostclan.com/post-310.html</guid>

</item>
<item>
	<title>使用Git生成增量更新包</title>
	<link>http://www.mostclan.com/post-309.html</link>
	<description><![CDATA[1、使用git log命令获取commit日志 2、使用git diff获取两次commit之间的差异文件，并用管道命令导出打包 git diff 7390e 891eca --name-only | xargs tar -czvf update.tar.gz <a href="http://www.mostclan.com/post-309.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-330.html">乐观锁和悲观锁</a></p><p><a href="http://www.mostclan.com/post-333.html">大小端字节序释义</a></p><p><a href="http://www.mostclan.com/post-203.html">【转发推荐必看】浅谈CSRF攻击方式</a></p><p><a href="http://www.mostclan.com/post-354.html">SSH快捷登录设置</a></p><p><a href="http://www.mostclan.com/post-162.html">HTTP Header 详解</a></p></div>]]></description>
	<pubDate>Tue, 10 Apr 2018 14:47:49 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-309.html</guid>

</item>
<item>
	<title>Javascript实现在线预览图片方法</title>
	<link>http://www.mostclan.com/post-287.html</link>
	<description><![CDATA[!DOCTYPE html 
 html lang=en 
 head 
 meta charset=UTF-8 
 title 前端js在线预览 /title 
 /head 
 body 
 img src= alt= style=width:80px;height:100px  input type=file class=files 
 script typet=text/javascript src=http://libs.baidu.com/jquery/1.9.1/jquery.min.js&gt... <a href="http://www.mostclan.com/post-287.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-163.html">手机端常用的报错信息提示</a></p><p><a href="http://www.mostclan.com/post-80.html">屏幕高度笔记</a></p><p><a href="http://www.mostclan.com/post-145.html">解决jquery zclip插件点击无效的问题</a></p><p><a href="http://www.mostclan.com/post-210.html">jQuery 获取当前节点的html包含当前节点的方法</a></p><p><a href="http://www.mostclan.com/post-98.html">返回前一页的两种方法的区别与好处</a></p></div>]]></description>
	<pubDate>Fri, 30 Mar 2018 08:29:05 +0000</pubDate>
	<author>Battle</author>
	<guid>http://www.mostclan.com/post-287.html</guid>

</item>
<item>
	<title>申请Let's Encrypt通配符HTTPS证书</title>
	<link>http://www.mostclan.com/post-285.html</link>
	<description><![CDATA[Let's Encrypt 发布的 ACME v2 现已正式支持通配符证书，接下来将为大家介绍怎样申请，Let's go. 注 本教程是在centos 7下操作的，其他Linux系统大同小异。 1.获取certbot-auto
# 下载
wget https://dl.eff.org/certbot-auto # 设为可执行权限
chmod a+x certbot-auto
2.开始申请证书
# 注xxx.com请根据自己的域名自行更改
./certbot-auto --server https://acme-v02.api.letsencrypt.org/directory -... <a href="http://www.mostclan.com/post-285.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-194.html">linux系统命令make、clean的用法讲解</a></p><p><a href="http://www.mostclan.com/post-192.html">将Centos的yum源更换为国内的阿里云源</a></p><p><a href="http://www.mostclan.com/post-82.html">虚拟机下CentOS 6.5配置IP地址的三种方法</a></p><p><a href="http://www.mostclan.com/post-85.html">Linux文件类型</a></p><p><a href="http://www.mostclan.com/post-191.html">通过关闭 UseDNS和GSSAPIAuthentication选项加速SSH登录</a></p></div>]]></description>
	<pubDate>Wed, 14 Mar 2018 14:57:54 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-285.html</guid>

</item>
<item>
	<title>【原创】时限业务到期检测方法</title>
	<link>http://www.mostclan.com/post-281.html</link>
	<description><![CDATA[网站业务中常常会有某些服务到期检测（如会员套餐到期检测）： 1、简单到期检测，2018/2/8 21:16（当前时间）是否大于2018/2/8 20:00（截止时间）  2、观测时段到期检测，2018/2/8 21:16（当前时间）+3天（观测时段）是否大于2018/2/12 20:00（截止时间） <a href="http://www.mostclan.com/post-281.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Thu, 08 Feb 2018 13:13:15 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-281.html</guid>

</item>
<item>
	<title>mysql的binlog日志限制大小和期限设置</title>
	<link>http://www.mostclan.com/post-253.html</link>
	<description><![CDATA[查看当前日志保存天数： show variables like '%expire_logs_days%';  这个默认是0，也就是logs不过期，可通过设置全局的参数，使他临时生效： set global expire_logs_days=7;  设置了只保留7天BINLOG, 下次重启mysql这个参数默认会失败，所以需在my.cnf中设置 expire_logs_days = 7 max_binlog_size = 100M 如果二进制日志写入的内容超... <a href="http://www.mostclan.com/post-253.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-331.html">Mysql 中 MyISAM 和 InnoDB 的区别</a></p><p><a href="http://www.mostclan.com/post-227.html">MySQL修改root密码的4种方法</a></p><p><a href="http://www.mostclan.com/post-201.html">MySQL中varchar的字符存储长度</a></p><p><a href="http://www.mostclan.com/post-126.html">MySQL的Date,DateTime,TimeStamp和Time数据类型</a></p><p><a href="http://www.mostclan.com/post-129.html">union、union all、Intersect、Minus的使用</a></p></div>]]></description>
	<pubDate>Sat, 09 Dec 2017 12:27:11 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-253.html</guid>

</item>
<item>
	<title>GIT免除pull/push时输入账号密码</title>
	<link>http://www.mostclan.com/post-252.html</link>
	<description><![CDATA[linux下  1. 在~/下， touch创建文件 .git-credentials, 用vim编辑此文件，输入： https://{username}:{password}@github.com 注意去掉{} 2. 在终端下执行 git config --global credential.helper store 3. 可以看到~/.gitconfig文件，会多了一项： [credential] helper = store <a href="http://www.mostclan.com/post-252.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-330.html">乐观锁和悲观锁</a></p><p><a href="http://www.mostclan.com/post-333.html">大小端字节序释义</a></p><p><a href="http://www.mostclan.com/post-203.html">【转发推荐必看】浅谈CSRF攻击方式</a></p><p><a href="http://www.mostclan.com/post-354.html">SSH快捷登录设置</a></p><p><a href="http://www.mostclan.com/post-162.html">HTTP Header 详解</a></p></div>]]></description>
	<pubDate>Tue, 05 Dec 2017 11:37:26 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-252.html</guid>

</item>
<item>
	<title>【原创】js实现页面重定向，增强移动端跳转体验（可自定上一页地址）</title>
	<link>http://www.mostclan.com/post-250.html</link>
	<description><![CDATA[（单页面应用可忽略） 我们知道js有个方法可以使用window.location.href=xxx..进行页面跳转，做移动前端的小伙伴肯定知道，这个方法虽然简单，但是也有很多问题： 示例情景： 某移动web项目需要实现在【列表页】点击【发布帖子】按钮进入【帖子发布页】，编辑完内容后按发帖按钮，这里有两种请求方法  1、直接post表单提交（页面会跳转到处理发布的页面） <a href="http://www.mostclan.com/post-250.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-163.html">手机端常用的报错信息提示</a></p><p><a href="http://www.mostclan.com/post-80.html">屏幕高度笔记</a></p><p><a href="http://www.mostclan.com/post-145.html">解决jquery zclip插件点击无效的问题</a></p><p><a href="http://www.mostclan.com/post-210.html">jQuery 获取当前节点的html包含当前节点的方法</a></p><p><a href="http://www.mostclan.com/post-98.html">返回前一页的两种方法的区别与好处</a></p></div>]]></description>
	<pubDate>Fri, 24 Nov 2017 04:12:11 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-250.html</guid>

</item>
<item>
	<title>【原创】PHP支付宝异步回调数据签名验证算法</title>
	<link>http://www.mostclan.com/post-249.html</link>
	<description><![CDATA[小V今天在做支付宝回调验签时碰到了不少问题： 1、openssl_get_publickey函数返回false（这里必须传支付宝的应用公钥，且格式正确，格式见后文代码）。 2、openssl_verify函数返回false，这里需要清除你的秘钥类型是什么（RSA/RSA2）。 贴函数代码： /** * 支付宝当面付异步回调数据验签 * @param  array $params                待验证数据 * @param  string $alipay_public_key    支付宝应用公钥 * @param  string $sign_type          ... <a href="http://www.mostclan.com/post-249.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Tue, 14 Nov 2017 12:07:05 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-249.html</guid>

</item>
<item>
	<title>【原创】记一次AJAX请求TP5接口解析JSON失败问题</title>
	<link>http://www.mostclan.com/post-248.html</link>
	<description><![CDATA[小V在写API接口时发生了个问题：使用jquery的ajax请求地址返回如下字符串，导致无法被dataType=json解析为json格式 {\code\:0,\msg\:\创建预支付码成功！\,\data\:\weixin:\\\/\\\/wxpay\\\/bizpayurl?pr=JuQfNMM\,\timestamp\:1510588707} 起初以为是ajax问题，搜索了相关的文章，有几个针对不解析json格式的原因： 1、JQuery版本问题，JQuery1.4对json的格式有着严格的要求，所有的键值都要用双引号标起来，说明文档 <a href="http://www.mostclan.com/post-248.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Mon, 13 Nov 2017 15:57:01 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-248.html</guid>

</item>
<item>
	<title>PHP设置HTTP缓存头</title>
	<link>http://www.mostclan.com/post-247.html</link>
	<description><![CDATA[对于PHP输出的内容，如果不是需要经常变动的内容（例如伪静态的一些页面，PHP输出JS或者CSS），使用PHP合理设置HTTP响应头添加缓存设置，让浏览器尽可能缓存下内容，在刷新和再次访问同样内容时，便不需要再次请求浏览器，从而能够大幅减少服务器的响应次数，同时浏览器呈现页面也会加快了，这是非常有用的一个技巧。 1、输出Cache-Control头： header('Cache-Control:max-age=120'); 这个的输出是表明让浏览器缓存120秒。这个指令很有用，但是局限性在于，刷新这个页面时还是会重新请求，所以你会感觉这个头好像没什么作用，但是对于一些输出的JS、CSS内容时是有... <a href="http://www.mostclan.com/post-247.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Sun, 05 Nov 2017 07:32:06 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-247.html</guid>

</item>
<item>
	<title>PHP自动捕捉页面500错误示例</title>
	<link>http://www.mostclan.com/post-246.html</link>
	<description><![CDATA[在程序调试时如果在本地我们出现500错误可以直接打开php.ini的错误来看到哪里错了,但在服务器中我们是不能这样做的,这样很容易让人感觉网站不正规的同时也可能给其它人看到你网站WEB路径及相关安全数据了,那要如何处理500错误呢,下面我们一看一个方法。 通常程序发生致命错误的时候页面空白,想获取错误信息也不难！主要是利用两个函数：error_get_last() 获取最后一次发生错误信息:结构如下： Array  (  [type] =  8  [message] =  Undefined variable: http://www.mostclan.com  [file] =  C... <a href="http://www.mostclan.com/post-246.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Fri, 03 Nov 2017 14:17:18 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-246.html</guid>

</item>
<item>
	<title>【整理】PHP邮件发送常见问题合集</title>
	<link>http://www.mostclan.com/post-245.html</link>
	<description><![CDATA[【被禁用了相关发信函数的解决方案1】  发送邮件出现“不能连接SMTP服务器.”（Error: Could not connect to SMTP host）的原因是fsockopen()被禁用。 由于国内大多数服务器禁用了mail()函数导致wordpress不能发送邮件，而SMTP 插件则是通过PHPmailer连接远程SMTP服务器来发送邮件，如果服务器禁用了fsockopen()函数就会出现上述错误。 下面给出解决方法： 用pfsockopen()函数直接替换掉 fsockopen() 如果pfsockopen函数被禁用的话，换其他可以操作Socket函数来代替, 如stream_socket... <a href="http://www.mostclan.com/post-245.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Thu, 26 Oct 2017 07:13:34 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-245.html</guid>

</item>
<item>
	<title>【原创】微信公众号业务域名泛域名绑定</title>
	<link>http://www.mostclan.com/post-244.html</link>
	<description><![CDATA[设置业务域名后，在微信内访问该域名下页面时，不会被重新排版。用户在该域名上进行输入时，不出现下图所示的安全提示。 注意事项： 1、可填写三个域名或路径（例：wx.qq.com或wx.qq.com/mp），需使用字母、数字及“-”的组合，不支持IP地址、端口号及短链域名。 2、填写的域名须通过ICP备案的验证。 3、将文件MP_verify_KU6TmoeAR0MvrJer.t... <a href="http://www.mostclan.com/post-244.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-169.html">微信开发之支付篇</a></p><p><a href="http://www.mostclan.com/post-207.html">记一次路由引起的接收消息失败问题</a></p><p><a href="http://www.mostclan.com/post-166.html">微信开发之基础篇(一)</a></p><p><a href="http://www.mostclan.com/post-165.html">微信开发之基础篇(二)</a></p></div>]]></description>
	<pubDate>Fri, 22 Sep 2017 02:53:07 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-244.html</guid>

</item>
<item>
	<title>移动站应该尝试百度MIP的五个原因</title>
	<link>http://www.mostclan.com/post-242.html</link>
	<description><![CDATA[MIP是什么？MIP是百度在2016年提出的移动网页加速器项目。 MIP能做什么？MIP能帮助站长和网站开发者快速搭建移动端页面。 MIP怎么加速？MIP从前端渲染和页面网络传输两方面进行优化，杜绝页面渲染中的阻塞问题，提升页面展现速度。 移动站应该用MIP吗？ 这里有五个原因，告诉你MIP的好处： 一． 加速移动端页面，一切的基础 为减少DNS解析，MIP-Cache将静态文件以相对路径储存在百度CDN中； 为减少网络传输耗时，MIP-JS 控制静态资源的按需加载，MIP-Cache系统优先从CDN读取文件； 为减少浏览器渲染重绘耗时... <a href="http://www.mostclan.com/post-242.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-183.html">什么是移动Sitemap协议,如何提交移动Sitemap协议</a></p></div>]]></description>
	<pubDate>Tue, 12 Sep 2017 02:42:44 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-242.html</guid>

</item>
<item>
	<title>JS知识点：sort()方法的用法，参数以及排序原理</title>
	<link>http://www.mostclan.com/post-241.html</link>
	<description><![CDATA[sort() 方法用于对数组的元素进行排序,并返回数组。默认排序顺序是根据字符串Unicode码点。
语法：arrayObject.sort(sortby)；参数sortby可选。规定排序顺序。必须是函数。
注：如果调用该方法时没有使用参数，将按字母顺序对数组中的元素进行排序，说得更精确点，是按照字符编码的顺序进行排序。要实现这一点，首先应把数组的元素都转换成字符串（如有必要），以便进行比较。 如果想按照其他标准进行排序，就需要提供比较函数，该函数要比较两个值，然后返回一个用于说明这两个值的相对顺序的数字。比较函数应该具有两个参数 a 和 b，其返回值如下：
若 a 小于 b，在排序... <a href="http://www.mostclan.com/post-241.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-163.html">手机端常用的报错信息提示</a></p><p><a href="http://www.mostclan.com/post-80.html">屏幕高度笔记</a></p><p><a href="http://www.mostclan.com/post-145.html">解决jquery zclip插件点击无效的问题</a></p><p><a href="http://www.mostclan.com/post-210.html">jQuery 获取当前节点的html包含当前节点的方法</a></p><p><a href="http://www.mostclan.com/post-98.html">返回前一页的两种方法的区别与好处</a></p></div>]]></description>
	<pubDate>Sat, 09 Sep 2017 04:17:51 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-241.html</guid>

</item>
<item>
	<title>PHP身份证校验码计算方法</title>
	<link>http://www.mostclan.com/post-240.html</link>
	<description><![CDATA[做项目的时候需要对拿到的数据进行“清洗”，比如剔除一些不可能存在的身份证号码。查阅了网上的身份证号码验证算法，自己也总结一下。 (一)18身份证号码的结构
公民身份号码是特征组合码，由十七位数字本体码和一位校验码组成。 排列顺序从左至右依次为：六位数字地址码，八位数字出生日期码，三位数字顺序码和一位校验码。
1、地址码
表示编码对象常住户口所在县(市、旗、区)的行政区域划分代码，按GB/T2260的规定执行。
2、出生日期码
表示编码对象出生的年、月、日，按GB/T7408的规定执行，年、月、日代码之间不用分隔符。 <a href="http://www.mostclan.com/post-240.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Sat, 09 Sep 2017 02:51:44 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-240.html</guid>

</item>
<item>
	<title>【原创】ThinkPHP5模块和控制器隐藏问题</title>
	<link>http://www.mostclan.com/post-239.html</link>
	<description><![CDATA[由于默认是采用多模块的支持，所以多个模块的情况下必须在URL地址中标识当前模块，如果只有一个模块的话，可以进行模块绑定，方法是应用的入口文件中添加如下代码： // 绑定当前访问到index模块 define('BIND_MODULE','index'); 绑定后，我们的URL访问地址则变成： http://serverName/index.php/控制器/操作/[参数名/参数值...]  访问的模块是index模块。 如果你的应用比较简单，模块和控制器都只有一个，那么可以在应用公共文件中绑定模块和控制器，如下... <a href="http://www.mostclan.com/post-239.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Fri, 01 Sep 2017 10:21:59 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-239.html</guid>

</item>
<item>
	<title>ThinkPHP5.0.10-3.2.3缓存函数设计缺陷可导致Getshell</title>
	<link>http://www.mostclan.com/post-238.html</link>
	<description><![CDATA[0x00 框架运行环境 <a href="http://www.mostclan.com/post-238.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Mon, 14 Aug 2017 05:32:29 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-238.html</guid>

</item>
<item>
	<title>【原创】GitHub OAuth第三方登录认证获取用户信息错误403</title>
	<link>http://www.mostclan.com/post-236.html</link>
	<description><![CDATA[GitHub的OAuth认证流程可参考文档OAuth documentation  access_token的获取如下： <a href="http://www.mostclan.com/post-236.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Sat, 29 Jul 2017 12:46:52 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-236.html</guid>

</item>
<item>
	<title>APACHE支持.htaccess以及 No input file specified解决方案</title>
	<link>http://www.mostclan.com/post-235.html</link>
	<description><![CDATA[你的Apache安装文件夹conf里找到httpd.conf文件 索LoadModule rewrite_module modules/mod_rewrite.so 如果前面有注释符号#，请去掉。 搜索Options FollowSymLinks，然后将它下面的AllowOverride None 修改为AllowOverride All； 【1】 没想到遇见了 No input file specified  因为项目用了URL route ，估摸着可能是rewrite的问题。 记录一下解决方案。 1.检查doc_root 是否设置此值... <a href="http://www.mostclan.com/post-235.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-213.html">.htaccess Internal Server Error while enabling Gzip</a></p><p><a href="http://www.mostclan.com/post-225.html">WAMP 403 Forbidden禁止访问</a></p></div>]]></description>
	<pubDate>Wed, 26 Jul 2017 16:47:00 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-235.html</guid>

</item>
<item>
	<title>json_encode注意</title>
	<link>http://www.mostclan.com/post-234.html</link>
	<description><![CDATA[PHP5.2或以上的版本把json_encode作为内置函数来用，但只支持utf-8编码的字符，否则中文就会出现乱码或者空值。解决办法如下： 1.保证在使用JSON处理的时候字符是以UTF8编码的。具体我们可以把数据库编码和页面编码都改为UTF8。如果喜欢用gbk编码的话，可以在进行JSON处理前，把字符转为UTF8形式。在PHP中有如下方法：  ?php    $data=JSON中文;    $newData=iconv(GB2312,UTF-8//IGNORE,$data);    echo $newData;  //ignore的意思是忽略转换时的错... <a href="http://www.mostclan.com/post-234.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Tue, 25 Jul 2017 15:20:43 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-234.html</guid>

</item>
<item>
	<title>记一次面试题（用PHP写一个检测重复文件的脚本）</title>
	<link>http://www.mostclan.com/post-233.html</link>
	<description><![CDATA[大概的题目意思是利用PHP写一个脚本，调用如： php.exe shell.php ./tmp ./dir/123 返回结果如： 123.php 222.php ------------ 22.abc 3.xml ------------ 我的代码：  ?php unset($argv[0]); foreach ($argv as $v) { $arr=[]; $path=__dir__.'/'.$v.'/'; if(is_dir($v)){ $f=scandir... <a href="http://www.mostclan.com/post-233.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Sat, 22 Jul 2017 10:23:19 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-233.html</guid>

</item>
<item>
	<title>记两题笔试题</title>
	<link>http://www.mostclan.com/post-232.html</link>
	<description><![CDATA[?php /** *  1、我们的程序运行过程中每分钟会采集一个整数的数据指标。 * 	持续采集n分钟就得到一个有n个元素的整数数组a[n]。 * 	现在我们需要一个简单的算法，检测采集到的数据指标中，是否有异常。 * 	异常的检测标准是：如果在连续m分钟内的指标的平均值大于w，则说明有异常。 * 	输入：数组a[n], 正整数m, 整数w * 	返回：有异常返回 1，没有异常返回 0 * 	例如：对于a={1, 5, 1, 3, 2}, m=2, w=2, 返回:1 * 	附加说明：不同的实现方式执行效率不一样，如果能找到一个很高效的算法就更好了。 ... <a href="http://www.mostclan.com/post-232.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Thu, 20 Jul 2017 03:52:27 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-232.html</guid>

</item>
<item>
	<title>让Json更懂中文(JSON_UNESCAPED_UNICODE)</title>
	<link>http://www.mostclan.com/post-231.html</link>
	<description><![CDATA[ <a href="http://www.mostclan.com/post-231.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Wed, 05 Jul 2017 15:35:54 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-231.html</guid>

</item>
<item>
	<title>MySQL修改root密码的4种方法</title>
	<link>http://www.mostclan.com/post-227.html</link>
	<description><![CDATA[方法1： 用SET PASSWORD命令 首先登录MySQL。 格式：mysql  set password for 用户名@localhost = password('新密码'); 例子：mysql  set password for root@localhost = password('123'); 方法2：用mysqladmin 格式：mysqladmin -u用户名 -p旧密码 password 新密码 例子：mysqladmin -uroot -p123... <a href="http://www.mostclan.com/post-227.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-331.html">Mysql 中 MyISAM 和 InnoDB 的区别</a></p><p><a href="http://www.mostclan.com/post-201.html">MySQL中varchar的字符存储长度</a></p><p><a href="http://www.mostclan.com/post-126.html">MySQL的Date,DateTime,TimeStamp和Time数据类型</a></p><p><a href="http://www.mostclan.com/post-129.html">union、union all、Intersect、Minus的使用</a></p><p><a href="http://www.mostclan.com/post-57.html">MySQL数据库基础回顾</a></p></div>]]></description>
	<pubDate>Sat, 17 Jun 2017 08:41:06 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-227.html</guid>

</item>
<item>
	<title>Redis中密码设置</title>
	<link>http://www.mostclan.com/post-226.html</link>
	<description><![CDATA[redis没有实现访问控制这个功能，但是它提供了一个轻量级的认证方式，可以编辑redis.conf配置来启用认证。 1、初始化Redis密码： 在配置文件中有个参数： requirepass 这个就是配置redis访问密码的参数； 比如 requirepass test123； （Ps:需重启Redis才能生效） redis的查询速度是非常快的，外部用户一秒内可以尝试多大150K个密码；所以密码要尽量长（对于DBA 没有必要必须记住密码）； 2、不重启Redis设置密码： 在配置文件中配置requirepass的密码（当redis重启时... <a href="http://www.mostclan.com/post-226.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-124.html">Redis五种数据类型介绍</a></p></div>]]></description>
	<pubDate>Tue, 13 Jun 2017 16:06:53 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-226.html</guid>

</item>
<item>
	<title>WAMP 403 Forbidden禁止访问</title>
	<link>http://www.mostclan.com/post-225.html</link>
	<description><![CDATA[修改httpd.conf文件 #   onlineoffline tag - don't remove Require local TO #   onlineoffline tag - don't remove Require all granted 参考：http://stackoverflow.com/questions/28560452/403-forbidden-wamp-server-2-5 ------------------------... <a href="http://www.mostclan.com/post-225.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-213.html">.htaccess Internal Server Error while enabling Gzip</a></p><p><a href="http://www.mostclan.com/post-235.html">APACHE支持.htaccess以及 No input file specified解决方案</a></p></div>]]></description>
	<pubDate>Fri, 09 Jun 2017 08:21:33 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-225.html</guid>

</item>
<item>
	<title>PHP中CURL的CURLOPT_POSTFIELDS参数使用细节</title>
	<link>http://www.mostclan.com/post-224.html</link>
	<description><![CDATA[CURL确实是一个不错的好工具，不仅在PHP中还是其他的操作系统中，都是一个非常好用的。但是如果你有些参数没有用好的话，那可能会得不到自己理想中的结果。 在通常情况下，我们使用 CURL 来提交 POST 数据的时候，我们已经习惯了这样的写法： curl_setopt( $ch, CURLOPT_POSTFIELDS,$post_data); 但是这样的写法在有时候并不会很好用，可能会得到服务器返回的 500 错误。但是我们尝试在使用 Socket 方式向服务器提交数据的时候，我们会得到非常正确的结果。 例如我们在服务器上面存在一个如下的 PHP 文件： <a href="http://www.mostclan.com/post-224.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Thu, 08 Jun 2017 08:32:33 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-224.html</guid>

</item>
<item>
	<title>php curl乱码问题</title>
	<link>http://www.mostclan.com/post-223.html</link>
	<description><![CDATA[小V刚刚碰到个乱码问题，初期以为是编码问题，就设置了header和charset发现都没用，最后排查是gzip压缩了 'Accept-Encoding: gzip, deflate' <a href="http://www.mostclan.com/post-223.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Thu, 08 Jun 2017 08:28:14 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-223.html</guid>

</item>
<item>
	<title>php curl设置自定义的HTTP头</title>
	<link>http://www.mostclan.com/post-222.html</link>
	<description><![CDATA[小V今天碰到比较坑的问题，一直以为参数是'item'= 'value'这么写的，没想到是'item:value'这样的。 $headers = array();
$headers[] = 'X-Apple-Tz: 0';
$headers[] = 'X-Apple-Store-Front: 143444,12';
$headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8';
$headers[] = 'Accept-Encoding: gzip, deflate';
$headers[] = 'Accept-Language: en-..... <a href="http://www.mostclan.com/post-222.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Thu, 08 Jun 2017 08:21:54 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-222.html</guid>

</item>
<item>
	<title>解决wamp下Composer因php_openssl扩展缺失而安装失败的问题</title>
	<link>http://www.mostclan.com/post-218.html</link>
	<description><![CDATA[Composer( https://getcomposer.org/ )是PHP下的一个依赖管理工具。你可以在你的项目中声明你所需要用到的类库，然后Composer会在项目中为你安装它们。如果你了解Node的 npm 或者Ruby的 Bundler ，就理解它是做什么的了，但是，它不是包管理器。 在Windows的Wamp环境下安装Composer(注：Composer要求PHP版本在5.3.2+)，你可能会遇到这种安装失败的情况：出错信息是 The openssl extension is missing, which will reduce the security and stability of Composer. If possible yo... <a href="http://www.mostclan.com/post-218.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Wed, 24 May 2017 08:34:35 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-218.html</guid>

</item>
<item>
	<title>百万级PHP网站架构工具箱</title>
	<link>http://www.mostclan.com/post-214.html</link>
	<description><![CDATA[在了解过世界最大的PHP站点，Facebook的后台技术后，今天我们来了解一个百万级PHP站点的网站架构：Poppen.de。 Poppen.de是德国的一个社交网站，相对Facebook、Flickr来说是一个很小的网站，但它有一个很好的架构，融合了很多技术，如 Nigix、MySql、CouchDB、Erlang、Memcached、RabbitMQ、PHP、Graphite、Red5以及Tsung。 Poppen.de目前有200万注册用户数、2万并发用户数、每天20万条私有消息、每天25万登录次数。而项目团队有11个开发人员，两个设计，两个系统管理员。该站点的商业模式采用免费增值模式，用户可以使用搜索用户、给好友发送消息、上载图片和视频等功能。... <a href="http://www.mostclan.com/post-214.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p><p><a href="http://www.mostclan.com/post-176.html">php数组合并array_merge与+的区别</a></p></div>]]></description>
	<pubDate>Thu, 18 May 2017 14:37:01 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-214.html</guid>

</item>
<item>
	<title>.htaccess Internal Server Error while enabling Gzip</title>
	<link>http://www.mostclan.com/post-213.html</link>
	<description><![CDATA[今天小V在使用gzip的时候遇到了一些问题，apache2.4的gzip开启和2.4以下版本有所区别，2.4中需要开启deflat_Module、headers_Module、filter_Module模块。以下是来自stackoverflow的网友配置方法：stackoverflowstackoverflowstackoverflowstackoverflowstackoverflowstackoverflowheaders_Module  There are different approchaes of achieving c... <a href="http://www.mostclan.com/post-213.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-225.html">WAMP 403 Forbidden禁止访问</a></p><p><a href="http://www.mostclan.com/post-235.html">APACHE支持.htaccess以及 No input file specified解决方案</a></p></div>]]></description>
	<pubDate>Thu, 18 May 2017 02:06:57 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-213.html</guid>

</item>
<item>
	<title>【原创】记update批量更新及默认值问题</title>
	<link>http://www.mostclan.com/post-211.html</link>
	<description><![CDATA[在常规的业务开发过程中，经常有更新数据的情况，而碰到多条数据更新必定会带来多次数据库改写操作，为了增加执行效率和数据完整、一致性，推荐采用多合一的批量更新方法。  首先看一下sql批量更新的语法： UPDATE categories  SET display_order = CASE id  WHEN 1 THEN 3  WHEN 2 THEN 4  WHEN 3 THEN 5  END
WHERE id IN (1,2,3) 如果要对多个字段进行更新则可写如下语法：... <a href="http://www.mostclan.com/post-211.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-331.html">Mysql 中 MyISAM 和 InnoDB 的区别</a></p><p><a href="http://www.mostclan.com/post-227.html">MySQL修改root密码的4种方法</a></p><p><a href="http://www.mostclan.com/post-201.html">MySQL中varchar的字符存储长度</a></p><p><a href="http://www.mostclan.com/post-126.html">MySQL的Date,DateTime,TimeStamp和Time数据类型</a></p><p><a href="http://www.mostclan.com/post-129.html">union、union all、Intersect、Minus的使用</a></p></div>]]></description>
	<pubDate>Tue, 16 May 2017 11:37:00 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-211.html</guid>

</item>
<item>
	<title>jQuery 获取当前节点的html包含当前节点的方法</title>
	<link>http://www.mostclan.com/post-210.html</link>
	<description><![CDATA[在开发过程中，jQuery.html() 是获取当前节点下的html代码，并不包含当前节点本身的代码，然后我们有时候确需要，找遍jQuery api文档也没有任何方法可以拿到。 看到有的人通过parent().html()，如果当前元素没有兄弟元素还行，如果有那就行不通了。后台实验发现有一个jQuery的一个方法可以解决，而且非常简便，如下：  div class=test  p hello，你好！ /p  /div   script  $(.test).prop(outerHTML);  /script  ... <a href="http://www.mostclan.com/post-210.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-163.html">手机端常用的报错信息提示</a></p><p><a href="http://www.mostclan.com/post-80.html">屏幕高度笔记</a></p><p><a href="http://www.mostclan.com/post-145.html">解决jquery zclip插件点击无效的问题</a></p><p><a href="http://www.mostclan.com/post-98.html">返回前一页的两种方法的区别与好处</a></p><p><a href="http://www.mostclan.com/post-79.html">document.body.scrollTop与document.documentElement.scrollTop兼容</a></p></div>]]></description>
	<pubDate>Mon, 15 May 2017 08:18:39 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-210.html</guid>

</item>
<item>
	<title>淘宝链接中的spm参数</title>
	<link>http://www.mostclan.com/post-209.html</link>
	<description><![CDATA[什么是SPM
SPM是淘宝社区电商业务（xTao）为外部合作伙伴（外站）提供的一套跟踪引导成交效果数据的解决方案。 下面是一个跟踪点击到宝贝详情页的引导成交效果数据的SPM示例：
http://detail.tmall.com/item.htm?id=3716461318&&spm=2014.123456789.1.2
其中spm=2014.123456789.1.2 便是下文所说的SPM编码 SPM编码：用来跟踪页面模块位置的编码，标准spm编码由4段组成，采用a.b.c.d的格式（建议全部使用数字），其中， ... <a href="http://www.mostclan.com/post-209.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-330.html">乐观锁和悲观锁</a></p><p><a href="http://www.mostclan.com/post-333.html">大小端字节序释义</a></p><p><a href="http://www.mostclan.com/post-203.html">【转发推荐必看】浅谈CSRF攻击方式</a></p><p><a href="http://www.mostclan.com/post-354.html">SSH快捷登录设置</a></p><p><a href="http://www.mostclan.com/post-162.html">HTTP Header 详解</a></p></div>]]></description>
	<pubDate>Wed, 10 May 2017 01:41:35 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-209.html</guid>

</item>
<item>
	<title>记一次路由引起的接收消息失败问题</title>
	<link>http://www.mostclan.com/post-207.html</link>
	<description><![CDATA[验证服务器都没问题，就接受消息那出现错误，看日志也没有数据提交进来，调试了好久，想起之前设置路由时有个method，然后…… <a href="http://www.mostclan.com/post-207.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-169.html">微信开发之支付篇</a></p><p><a href="http://www.mostclan.com/post-166.html">微信开发之基础篇(一)</a></p><p><a href="http://www.mostclan.com/post-165.html">微信开发之基础篇(二)</a></p><p><a href="http://www.mostclan.com/post-244.html">【原创】微信公众号业务域名泛域名绑定</a></p></div>]]></description>
	<pubDate>Wed, 03 May 2017 13:53:35 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-207.html</guid>

</item>
<item>
	<title>js动态添加数据(数组形式)</title>
	<link>http://www.mostclan.com/post-205.html</link>
	<description><![CDATA[div class=class group 1  class=row cl   label class=form-label col-xs-4 col-sm-2 组别1： /label   div class=formC... <a href="http://www.mostclan.com/post-205.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-163.html">手机端常用的报错信息提示</a></p><p><a href="http://www.mostclan.com/post-80.html">屏幕高度笔记</a></p><p><a href="http://www.mostclan.com/post-145.html">解决jquery zclip插件点击无效的问题</a></p><p><a href="http://www.mostclan.com/post-210.html">jQuery 获取当前节点的html包含当前节点的方法</a></p><p><a href="http://www.mostclan.com/post-98.html">返回前一页的两种方法的区别与好处</a></p></div>]]></description>
	<pubDate>Fri, 21 Apr 2017 03:27:01 +0000</pubDate>
	<author>Battle</author>
	<guid>http://www.mostclan.com/post-205.html</guid>

</item>
<item>
	<title>【原创】ThinkPHP5.0.7缓存空数组的BUG</title>
	<link>http://www.mostclan.com/post-204.html</link>
	<description><![CDATA[问题：在对数据库查询获取到“空数据”时，不会写入缓存。 我使用的TP版本：5.0.7_core 我看了下db\Query.php，在2304行有一句判断 if (isset($cache) && $resultSet) { // 缓存数据集 $this- cacheData($key, $resultSet, $cache); } 在这个判断前$resultSet有一次查询操作，如果返回的是一个空数组，那么这个判断不会成立，也就不会写入缓存（虽然说空数组没有缓存的意义，但这确实是一次原原本本的数据库操作）。 所以我将判断修改为 i... <a href="http://www.mostclan.com/post-204.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p><p><a href="http://www.mostclan.com/post-176.html">php数组合并array_merge与+的区别</a></p></div>]]></description>
	<pubDate>Thu, 20 Apr 2017 05:31:34 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-204.html</guid>

</item>
<item>
	<title>【转发推荐必看】浅谈CSRF攻击方式</title>
	<link>http://www.mostclan.com/post-203.html</link>
	<description><![CDATA[一.CSRF是什么？ <a href="http://www.mostclan.com/post-203.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-330.html">乐观锁和悲观锁</a></p><p><a href="http://www.mostclan.com/post-333.html">大小端字节序释义</a></p><p><a href="http://www.mostclan.com/post-354.html">SSH快捷登录设置</a></p><p><a href="http://www.mostclan.com/post-162.html">HTTP Header 详解</a></p><p><a href="http://www.mostclan.com/post-137.html">贪婪匹配和非贪婪匹配</a></p></div>]]></description>
	<pubDate>Tue, 18 Apr 2017 13:57:58 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-203.html</guid>

</item>
<item>
	<title>记一次判断错误所引起的缓存失败问题</title>
	<link>http://www.mostclan.com/post-202.html</link>
	<description><![CDATA[我习惯用empty来检测数据，今天碰到了个缓存失败问题，之前的代码如下： // 根据分类动作获取应用列表 public function getListByAction($action=''){ $cacheName='appListByAction('.$action.')V1'; $appList=cache($cacheName); if(empty($appList)){ //如果缓存未设置 $cid=Db::name('appCategory')- where('action',$action)- value('id'); $appModel=Db::nam... <a href="http://www.mostclan.com/post-202.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Tue, 18 Apr 2017 03:08:54 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-202.html</guid>

</item>
<item>
	<title>MySQL中varchar的字符存储长度</title>
	<link>http://www.mostclan.com/post-201.html</link>
	<description><![CDATA[varchar（M）其中的M代表的是字符数 而不是字节数 和编码类型无关 无论是哪一种编码都只能存M个字符 比如：M=6 那么它能存6个汉字或者存6个英文字母。 4.0版本以下，varchar(20)，指的是20字节，如果存放UTF8汉字时，只能存6个（每个汉字3字节） ；5.0版本以上，varchar(20)，指的是20字符，无论存放的是数字、字母还是UTF8汉字（每个汉字3字节），都可以存放20个，最大大小是65532字节 ；varchar(20)在Mysql4中最大也不过是20个字节,但是Mysql5根据编码不同,存储大小也不同，具体有以下规则： a) 存储限制 varchar 字段是将实际内容单独存储在聚簇索引之外，内容开头用1到2个字节表示实... <a href="http://www.mostclan.com/post-201.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-331.html">Mysql 中 MyISAM 和 InnoDB 的区别</a></p><p><a href="http://www.mostclan.com/post-227.html">MySQL修改root密码的4种方法</a></p><p><a href="http://www.mostclan.com/post-126.html">MySQL的Date,DateTime,TimeStamp和Time数据类型</a></p><p><a href="http://www.mostclan.com/post-129.html">union、union all、Intersect、Minus的使用</a></p><p><a href="http://www.mostclan.com/post-57.html">MySQL数据库基础回顾</a></p></div>]]></description>
	<pubDate>Tue, 18 Apr 2017 01:11:45 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-201.html</guid>

</item>
<item>
	<title>PHP密码加盐Hash</title>
	<link>http://www.mostclan.com/post-200.html</link>
	<description><![CDATA[加盐Hash： $salt=base64_encode(mcrypt_create_iv(32,MCRYPT_DEV_RANDOM));   $password=sha1($register_password.$salt);   解释: 使用mcrypt，产生电脑随机生成的，专门用户加密的随机数函数。 把得到的随机数通过base64加密，使其变长并且不利于猜解。 ... <a href="http://www.mostclan.com/post-200.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Mon, 17 Apr 2017 02:18:33 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-200.html</guid>

</item>
<item>
	<title>百度判断手机终端并自动跳转js代码及使用实例</title>
	<link>http://www.mostclan.com/post-199.html</link>
	<description><![CDATA[百度目前为站长提供了判断手机终端类型并自动实现跳转的js脚本，极大的方便了广大站长及web开发人员。其js脚本的使用方法极其简单。  script src=http://siteapp.baidu.com/static/webappservice/uaredirect.js type=text/javascript  /script   script type=text/javascript uaredirect(手机站,WEB站); /script  其中最为核心的js脚本格式化代码如下所示： f... <a href="http://www.mostclan.com/post-199.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-163.html">手机端常用的报错信息提示</a></p><p><a href="http://www.mostclan.com/post-80.html">屏幕高度笔记</a></p><p><a href="http://www.mostclan.com/post-145.html">解决jquery zclip插件点击无效的问题</a></p><p><a href="http://www.mostclan.com/post-210.html">jQuery 获取当前节点的html包含当前节点的方法</a></p><p><a href="http://www.mostclan.com/post-98.html">返回前一页的两种方法的区别与好处</a></p></div>]]></description>
	<pubDate>Thu, 13 Apr 2017 04:54:12 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-199.html</guid>

</item>
<item>
	<title>history.back返回后数据丢失的解决办法</title>
	<link>http://www.mostclan.com/post-198.html</link>
	<description><![CDATA[‍js使用history.back返回表单数据丢失的主要原因就是使用了session_start();的原因，该函数会强制当前页面不被缓存。  解决办法如下： 在你的 Session_start 函数后加入 header(Cache-control: private); 注意在本行之前你的PHP程序不能有任何输出。 还有基于session的解决方法，在session_start前加上 session_cache_limiter('nocache');// 清空表单  session_cache_limiter('private'); //不清空表单，只在session生效期间  se... <a href="http://www.mostclan.com/post-198.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Mon, 10 Apr 2017 01:20:51 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-198.html</guid>

</item>
<item>
	<title>PHP中exec函数和shell_exec函数的区别</title>
	<link>http://www.mostclan.com/post-197.html</link>
	<description><![CDATA[这篇文章主要介绍了PHP中exec函数和shell_exec函数的区别,这两个函数是非常危险的函数,一般情况都是被禁用的,当然特殊情况下也会使用,需要的朋友可以参考下。 这两个函数都是执行Linux命令函数，不同的是获取返回结果不一样，exec只能获取最后一行数据，shell_execu则可以获取全部数据。 假如脚本路径下有如下文件: -bash-4.1# ll 总用量 12 -rw-rw-r--. 1 www web 133  7月 16 15:00 a.php -rw-r--r--. 1 lee web  59  2月 29 17:05 b.php -rw-r--r--. 1 lee web  81 ... <a href="http://www.mostclan.com/post-197.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Sun, 09 Apr 2017 04:31:11 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-197.html</guid>

</item>
<item>
	<title>记一次哭笑不得的问题</title>
	<link>http://www.mostclan.com/post-196.html</link>
	<description><![CDATA[今天在调试网站系统的时候发现广告图片管理模块打不开了 ——这不科学啊，往常都好好的，因为网站系统中各个模块的跳转都是利用框架和js代码支持的，所以我先看了下html，rel链接正常，然后打开调试工具看了下：/Admin/Ad/index.html 这个页面报了个net::ERR_BLOCKED_BY_CLIENT，百度了下“错误20 (net::ERR_BLOCKED_BY_CLIENT)：对服务器的请求已遭到某个扩展程序的阻止”，这个时候我恍然大悟，原来是我的阻止广告的扩展把我的网站给屏蔽了……可想而知我心里真是无比复杂…… <a href="http://www.mostclan.com/post-196.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Fri, 07 Apr 2017 02:06:20 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-196.html</guid>

</item>
<item>
	<title>linux系统命令make、clean的用法讲解</title>
	<link>http://www.mostclan.com/post-194.html</link>
	<description><![CDATA[先先看一下什么是makefile makefile定义了一系列的规则来指定，哪些文件需要先编译，哪些文件需要后编译，哪些文件需要重新编译，甚至于进行更复杂的功能操作，因为 makefile就像一个Shell脚本一样，其中也可以执行操作系统的命令。 makefile带来的好处就是--“自动化编译”,一旦写好，只需要一个make命令，整个工程完全自动编译，极大的提高了软件开发的效率。make是一个命令工具，是一个解释makefile中指令的命令工具，一般来说，大多数的IDE都有这个命令，比如：Delphi的make,Visual C++的nmake,Linux下GNU的make.可见，makefile都成为了一种在工程方面的编译方法。 <a href="http://www.mostclan.com/post-194.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-192.html">将Centos的yum源更换为国内的阿里云源</a></p><p><a href="http://www.mostclan.com/post-82.html">虚拟机下CentOS 6.5配置IP地址的三种方法</a></p><p><a href="http://www.mostclan.com/post-85.html">Linux文件类型</a></p><p><a href="http://www.mostclan.com/post-191.html">通过关闭 UseDNS和GSSAPIAuthentication选项加速SSH登录</a></p><p><a href="http://www.mostclan.com/post-285.html">申请Let's Encrypt通配符HTTPS证书</a></p></div>]]></description>
	<pubDate>Wed, 22 Mar 2017 05:51:52 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-194.html</guid>

</item>
<item>
	<title>将Centos的yum源更换为国内的阿里云源</title>
	<link>http://www.mostclan.com/post-192.html</link>
	<description><![CDATA[阿里云是最近新出的一个镜像源。得益与阿里云的高速发展，这么大的需求，肯定会推出自己的镜像源。 阿里云Linux安装镜像源地址：http://mirrors.aliyun.com/ CentOS系统更换软件安装源 第一步：备份你的原镜像文件，以免出错后可以恢复。 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 第二步：下载新的CentOS-Base.repo 到/etc/yum.... <a href="http://www.mostclan.com/post-192.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-194.html">linux系统命令make、clean的用法讲解</a></p><p><a href="http://www.mostclan.com/post-82.html">虚拟机下CentOS 6.5配置IP地址的三种方法</a></p><p><a href="http://www.mostclan.com/post-85.html">Linux文件类型</a></p><p><a href="http://www.mostclan.com/post-191.html">通过关闭 UseDNS和GSSAPIAuthentication选项加速SSH登录</a></p><p><a href="http://www.mostclan.com/post-285.html">申请Let's Encrypt通配符HTTPS证书</a></p></div>]]></description>
	<pubDate>Wed, 15 Mar 2017 01:16:43 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-192.html</guid>

</item>
<item>
	<title>通过关闭 UseDNS和GSSAPIAuthentication选项加速SSH登录</title>
	<link>http://www.mostclan.com/post-191.html</link>
	<description><![CDATA[通常情况下我们在连接 OpenSSH服务器的时候假如 UseDNS选项是打开的话，服务器会先根据客户端的 IP地址进行 DNS PTR反向查询出客户端的主机名，然后根据查询出的客户端主机名进行DNS正向A记录查询，并验证是否与原始 IP地址一致，通过此种措施来防止客户端欺骗。平时我们都是动态 IP不会有PTR记录，所以打开此选项也没有太多作用。我们可以通过关闭此功能来提高连接 OpenSSH 服务器的速度。 服务端步骤如下： 编辑配置文件 /etc/ssh/sshd_config vim /etc/ssh/sshd_config 找到 UseDNS选项，如果没有注释，将其注释... <a href="http://www.mostclan.com/post-191.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-194.html">linux系统命令make、clean的用法讲解</a></p><p><a href="http://www.mostclan.com/post-192.html">将Centos的yum源更换为国内的阿里云源</a></p><p><a href="http://www.mostclan.com/post-82.html">虚拟机下CentOS 6.5配置IP地址的三种方法</a></p><p><a href="http://www.mostclan.com/post-85.html">Linux文件类型</a></p><p><a href="http://www.mostclan.com/post-285.html">申请Let's Encrypt通配符HTTPS证书</a></p></div>]]></description>
	<pubDate>Mon, 13 Mar 2017 03:55:59 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-191.html</guid>

</item>
<item>
	<title>php ob_flush() flush() 函数不起作用的原因</title>
	<link>http://www.mostclan.com/post-190.html</link>
	<description><![CDATA[?php   for($i = 1; $i  = 300; $i++) print( );    // 这一句话非常关键，cache的结构使得它的内容只有达到一定的大小才能从浏览器里，输出针对ie  // 换言之，如果cache的内容不达到一定的大小，它是不会在程序执行完毕前输出的。经 过测试，我发现这个大小的底限是256个字符长。这意味着cache以后接收的内容都会源源不断的被发送出去。    for($j = 1; $j  = 5; $j++) {    echo $j .  br ;    //ob_flush();   flush(); //这一部会使cache新增的内容被挤出去，显示到浏览... <a href="http://www.mostclan.com/post-190.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Thu, 09 Mar 2017 08:55:02 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-190.html</guid>

</item>
<item>
	<title>VMWARE里安装时出现'SMBus Host Controller not enabled'</title>
	<link>http://www.mostclan.com/post-189.html</link>
	<description><![CDATA[在虚拟机上运行Linux内核版本为4.7或以上的系统都在安装过程中或在启动时会因为加载intel_powerclamp驱动而导致崩溃。 解决办法： 1.在启动Ubuntu的时候按住左Shift键； 2.Ubuntu开机时将显示GRUB启动选项； 3.接下来选择Ubuntu的高级选项（Advanced options for Ubuntu）； 4.然后进入Ubuntu的恢复模式（Ubuntu, with Linux 4.7.x.x-generic (recovery mode)）； 5... <a href="http://www.mostclan.com/post-189.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-194.html">linux系统命令make、clean的用法讲解</a></p><p><a href="http://www.mostclan.com/post-192.html">将Centos的yum源更换为国内的阿里云源</a></p><p><a href="http://www.mostclan.com/post-82.html">虚拟机下CentOS 6.5配置IP地址的三种方法</a></p><p><a href="http://www.mostclan.com/post-85.html">Linux文件类型</a></p><p><a href="http://www.mostclan.com/post-191.html">通过关闭 UseDNS和GSSAPIAuthentication选项加速SSH登录</a></p></div>]]></description>
	<pubDate>Mon, 06 Mar 2017 05:17:04 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-189.html</guid>

</item>
<item>
	<title>XPath和CSS选择器</title>
	<link>http://www.mostclan.com/post-188.html</link>
	<description><![CDATA[原文:http://ejohn.org/blog/xpath-css-selectors 最近,我做了很多工作来实现一个同时支持XPath和CSS 3的解析... <a href="http://www.mostclan.com/post-188.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Fri, 03 Mar 2017 08:34:34 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-188.html</guid>

</item>
<item>
	<title>PHP分页基础样式逻辑</title>
	<link>http://www.mostclan.com/post-186.html</link>
	<description><![CDATA[今天小V帮人回答分页的问题特此写了个基础版代码，如有更好的代码请分享！ $page=5; //当前页 $pageMax=20; //最大页 $page=max($page,1); $page=min($page,$pageMax); $limit=3; //左右侧显示页数 $start=$page-$limit 0?$page-$limit:1; $n=$limit =$page?$limit-$page+1:0; //补差 $end=$page+$limit $pageMax?$pageMax:$page+$limit+$n; for($i=$start;$i =$end;$i++){ if($i==$page) ... <a href="http://www.mostclan.com/post-186.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Mon, 27 Feb 2017 03:45:17 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-186.html</guid>

</item>
<item>
	<title>ip2long转换IP时数值太大产生负数的解决方法</title>
	<link>http://www.mostclan.com/post-185.html</link>
	<description><![CDATA[【造成原因】：Because PHP's integer type is signed, and many IP addresses will result in negative integers. 【解决办法】：其官方手册中提到，可以“you need to use the %u formatter of sprintf() or printf() to get the string representation of the unsigned IP address” 即，printf( '%u', ip2long( 'IP地址' ) ); 或者将其先转换为二进制然后在转换为十进制，bindec( decbin( ip2long( 'IP地址' )... <a href="http://www.mostclan.com/post-185.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Thu, 16 Feb 2017 03:08:27 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-185.html</guid>

</item>
<item>
	<title>什么是移动Sitemap协议,如何提交移动Sitemap协议</title>
	<link>http://www.mostclan.com/post-183.html</link>
	<description><![CDATA[百度推出了移动Sitemap协议，用于将网址提交给移动搜索收录。百度移动Sitemap协议是在标准Sitemap协议基础上制定的，增加了 mobile:mobile/ 标签，它有四种取值：  mobile:mobile/  ：移动网页  mobile:mobile type=mobile/  ：移动网页        mobile:mobile type=pc,mobile/ ：自适应网页  mobile:mobile type=htmladapt/ ：代码适配 <a href="http://www.mostclan.com/post-183.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-242.html">移动站应该尝试百度MIP的五个原因</a></p></div>]]></description>
	<pubDate>Fri, 10 Feb 2017 01:08:06 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-183.html</guid>

</item>
<item>
	<title>ini_set()函数的使用以及post_max_size,upload_max_filesize的修改方法</title>
	<link>http://www.mostclan.com/post-182.html</link>
	<description><![CDATA[Apache服务器处理： ini_set('display_errors', 'Off'); ini_set('memory_limit', -1); //-1 / 10240M ini_set(max_execution_time, 0); //ini_set('magic_quotes_gpc', 'On');  IfModule mod_php5.c  php_value post_max_size    10M php_value upload_max_filesize 8M php_value max_fil... <a href="http://www.mostclan.com/post-182.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Wed, 08 Feb 2017 03:05:14 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-182.html</guid>

</item>
<item>
	<title>thinkphp运行时间中的Exec:缓慢</title>
	<link>http://www.mostclan.com/post-181.html</link>
	<description><![CDATA[作者：罪惡 发布于：2013-7-9 13:38 Tuesday 数据库 最近在windows上开发应用的时候发现一个有趣的问题：我的本地程序连接本地mysql库居然要延迟1秒钟左右才能打开。 问题分析 考虑到可能是程序性能问题后，我使用了xdebug的性能日志功能输出程序运行日志后发现连接mysql的函数时间居然用掉了接近95%的执行时间。 确认是mysql性能问题后，考虑是mysql的域名反查功能影响了速度，令我失望的是，在my.ini里面关闭域名反查后问题依旧存在。 百思不得其解时我突发奇想将代码中的服务器的地址从localhost修改为了127.0.0.1，那个神奇的1秒钟延迟居然消失了。 换成ip后居然就好了，难道是l... <a href="http://www.mostclan.com/post-181.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Tue, 17 Jan 2017 04:54:59 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-181.html</guid>

</item>
<item>
	<title>thinkphp IIS下伪静态配置</title>
	<link>http://www.mostclan.com/post-180.html</link>
	<description><![CDATA[?xml version=1.0 encoding=UTF-8?   configuration   system.webServer   rewrite   rules   rule name=OrgPage stopProcessing=true   match url=^(.*)$ /   conditions logicalGrouping=MatchAll   add input={HTTP_HOST} pattern=^(.*)$ /  &... <a href="http://www.mostclan.com/post-180.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Tue, 17 Jan 2017 03:25:40 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-180.html</guid>

</item>
<item>
	<title>webuploader 解决不能重复上传问题</title>
	<link>http://www.mostclan.com/post-178.html</link>
	<description><![CDATA[根据查看webuploader文档 里面有个duplicate属性，是可选的， true为可重复  ，false为不可重复  默认为undifind 也是不可重复。 所以只需在属性的后面追加duplicate:true 就可以实现重复上传。 uploader = WebUploader.create({ swf: 'resources/js/webuploader-0.1.5/Uploader.swf', server: settings.url, pick: '#picker', resize: false, duplicate: tru... <a href="http://www.mostclan.com/post-178.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Mon, 09 Jan 2017 03:41:19 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-178.html</guid>

</item>
<item>
	<title>webuploader php解决中文文件上传问题</title>
	<link>http://www.mostclan.com/post-177.html</link>
	<description><![CDATA[?php // Make sure file is not cached (as it happens for example on iOS devices) header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT); header(Cache-Control: no-store, no-cache, must-revalidate); header(Cache-Control: post-check=0, pre-check=0, false); header(Pragma: ... <a href="http://www.mostclan.com/post-177.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Mon, 09 Jan 2017 03:35:14 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-177.html</guid>

</item>
<item>
	<title>php数组合并array_merge与+的区别</title>
	<link>http://www.mostclan.com/post-176.html</link>
	<description><![CDATA[rray_merge()是PHP语言中的一个函数，作用是将两个或多个数组的单元合并起来，一个数组中的值附加在前一个数组的后面。返回作为结果的数组。 如果输入的数组中有相同的字符串键名，该键的键值为最后一个键名对应的值（后面的值覆盖前面相同的值）。如果数组是数字键名的，则键名会以连续方式重新索引，即后面的值将不会覆盖原来的值，而是附加到后面。 注释：如果仅仅向 array_merge() 函数输入了一个数组，且键名是整数，则该函数将返回带有整数键名的新数组，其键名以 0 开始进行重新索引。（参见例子 2） 注意：当后面数组元素中键名与其前面数组元素键名相同时，则结果数组中相应键名的键值则被后者覆盖，即为后者键值。（参见例子3） <a href="http://www.mostclan.com/post-176.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Tue, 03 Jan 2017 12:45:20 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-176.html</guid>

</item>
<item>
	<title>ThinkPHP数据库更新（save）无变化更新失败问题</title>
	<link>http://www.mostclan.com/post-175.html</link>
	<description><![CDATA[save方法的返回值是影响的记录数，如果返回false则表示更新出错。 如果字段没有被修改，则返回0，并不是失败。 所以判断是否失败使用if($result !== false) <a href="http://www.mostclan.com/post-175.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Thu, 22 Dec 2016 07:26:55 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-175.html</guid>

</item>
<item>
	<title>MySQL使用source命令乱码问题解决方法</title>
	<link>http://www.mostclan.com/post-174.html</link>
	<description><![CDATA[解决方式 在导出mysql sql执行文件的时候，指定一下编码格式： mysqldump -uroot -p --default-character-set=utf8 mo（dbname）   E://xxxx.sql 导入的时候OK了 执行如下 mysql -u root -p --default-character-set=utf8 use dbname source /root/newsdata.sql <a href="http://www.mostclan.com/post-174.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-331.html">Mysql 中 MyISAM 和 InnoDB 的区别</a></p><p><a href="http://www.mostclan.com/post-227.html">MySQL修改root密码的4种方法</a></p><p><a href="http://www.mostclan.com/post-201.html">MySQL中varchar的字符存储长度</a></p><p><a href="http://www.mostclan.com/post-126.html">MySQL的Date,DateTime,TimeStamp和Time数据类型</a></p><p><a href="http://www.mostclan.com/post-129.html">union、union all、Intersect、Minus的使用</a></p></div>]]></description>
	<pubDate>Sun, 18 Dec 2016 12:46:50 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-174.html</guid>

</item>
<item>
	<title>记一次DNS缓存引起的问题</title>
	<link>http://www.mostclan.com/post-173.html</link>
	<description><![CDATA[今天在对公司的网站单子做解析跳转，用的是程序跳转（域名面板不支持301跳），域名解析到海外空间后，访问网址却跳到了一个cPanel错误帮助页，提示： The IP address has changed.
The IP address for this domain may have recently changed. Check your DNS settings to verify that the domain is set up correctly. It may take 8-24 hours for DNS changes to propagate. It may be possible to restore access to this... <a href="http://www.mostclan.com/post-173.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-330.html">乐观锁和悲观锁</a></p><p><a href="http://www.mostclan.com/post-333.html">大小端字节序释义</a></p><p><a href="http://www.mostclan.com/post-203.html">【转发推荐必看】浅谈CSRF攻击方式</a></p><p><a href="http://www.mostclan.com/post-354.html">SSH快捷登录设置</a></p><p><a href="http://www.mostclan.com/post-162.html">HTTP Header 详解</a></p></div>]]></description>
	<pubDate>Wed, 14 Dec 2016 09:12:34 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-173.html</guid>

</item>
<item>
	<title>微信开发之支付篇</title>
	<link>http://www.mostclan.com/post-169.html</link>
	<description><![CDATA[很多人对微信开发最大的烦恼就是支付,而对于用thinkPhp的人来说,其实并不难,当然,原生的只要修改对应文件 直接就可以把官网的sdk拿来用. 下面我讲一下微信支付的重点: 首先当然要把服务号的支付申请下来,然后会得到一个商户平台的账户信息,登录过去得到api密钥 微信支付商户号 还有一个安全证书,这个非常重要 然后我们可以下载微信官方的最新sdk,直接放到服务器上访问,如果可用,则把整个文件丢到 <a href="http://www.mostclan.com/post-169.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-207.html">记一次路由引起的接收消息失败问题</a></p><p><a href="http://www.mostclan.com/post-166.html">微信开发之基础篇(一)</a></p><p><a href="http://www.mostclan.com/post-165.html">微信开发之基础篇(二)</a></p><p><a href="http://www.mostclan.com/post-244.html">【原创】微信公众号业务域名泛域名绑定</a></p></div>]]></description>
	<pubDate>Thu, 24 Nov 2016 09:00:05 +0000</pubDate>
	<author>Battle</author>
	<guid>http://www.mostclan.com/post-169.html</guid>

</item>
<item>
	<title>【程序员福利】各大平台免费接口，非常实用</title>
	<link>http://www.mostclan.com/post-167.html</link>
	<description><![CDATA[电商接口 京东获取单个商品价格接口： http://p.3.cn/prices/mgets?skuIds=J_商品ID&type=1 ps:商品ID这么获取:http://item.jd.com/954086.html 物流接口 快递接口： http://www.kuaidi100.com/query?type=快递公司代号&postid=快递单号 ps:快递公司编码:申通=”shentong” EMS=”ems” 顺丰=”shunfeng” 圆通=”yuantong” 中通=”zhongtong” 韵达=”yunda” 天天=”tiantian” 汇... <a href="http://www.mostclan.com/post-167.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-330.html">乐观锁和悲观锁</a></p><p><a href="http://www.mostclan.com/post-333.html">大小端字节序释义</a></p><p><a href="http://www.mostclan.com/post-203.html">【转发推荐必看】浅谈CSRF攻击方式</a></p><p><a href="http://www.mostclan.com/post-354.html">SSH快捷登录设置</a></p><p><a href="http://www.mostclan.com/post-162.html">HTTP Header 详解</a></p></div>]]></description>
	<pubDate>Fri, 11 Nov 2016 08:45:09 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-167.html</guid>

</item>
<item>
	<title>微信开发之基础篇(一)</title>
	<link>http://www.mostclan.com/post-166.html</link>
	<description><![CDATA[很遗憾,本来写好了的,被我自己愚蠢的覆盖了,哎,心累 本篇主要讲如何自定义菜单,当然这里的自定义菜单不是微信自带的那个微信自定义菜单,而是在打开开发者选项之后里面的自定义菜单 在开始之前,需要打开开发者选项,获得AppID 和appsecret,然后进入到开发者工具里面的在线接口调试   进入后,输入你的AppID 和appsecret,可以获得一个有效期有2个小时的token,利用这个... <a href="http://www.mostclan.com/post-166.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-169.html">微信开发之支付篇</a></p><p><a href="http://www.mostclan.com/post-207.html">记一次路由引起的接收消息失败问题</a></p><p><a href="http://www.mostclan.com/post-165.html">微信开发之基础篇(二)</a></p><p><a href="http://www.mostclan.com/post-244.html">【原创】微信公众号业务域名泛域名绑定</a></p></div>]]></description>
	<pubDate>Sun, 06 Nov 2016 09:44:12 +0000</pubDate>
	<author>Battle</author>
	<guid>http://www.mostclan.com/post-166.html</guid>

</item>
<item>
	<title>微信开发之基础篇(二)</title>
	<link>http://www.mostclan.com/post-165.html</link>
	<description><![CDATA[上一篇我们讲了自定义菜单,那么现在我们就来讲一讲微信端最重要的一个功能----微信授权登录 由于截图内容看上去不多,我就用文字介绍. 第一步,准备一个服务器和一个备案域名(这个很重要) 第二步,打开接口权限,在基本配置下方,找到网页授权,进入之后会跳到一个页面,找到网页授权域名,设置成准备好的域名地址 第三步,验证token--这里的token在基本配置里面 先自定义一个token,这个无特殊要求 &... <a href="http://www.mostclan.com/post-165.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-169.html">微信开发之支付篇</a></p><p><a href="http://www.mostclan.com/post-207.html">记一次路由引起的接收消息失败问题</a></p><p><a href="http://www.mostclan.com/post-166.html">微信开发之基础篇(一)</a></p><p><a href="http://www.mostclan.com/post-244.html">【原创】微信公众号业务域名泛域名绑定</a></p></div>]]></description>
	<pubDate>Sun, 06 Nov 2016 09:16:27 +0000</pubDate>
	<author>Battle</author>
	<guid>http://www.mostclan.com/post-165.html</guid>

</item>
<item>
	<title>手机端常用的报错信息提示</title>
	<link>http://www.mostclan.com/post-163.html</link>
	<description><![CDATA[function msg_tit_common(e, t, r, n, a) { if (!a) { if (e) { $(. + t).html(e); $(. + t).show(); if (n) { error_msg_ani(t) } if (r) { $(body,html).animate({ scrollTop: 0 }, ... <a href="http://www.mostclan.com/post-163.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-80.html">屏幕高度笔记</a></p><p><a href="http://www.mostclan.com/post-145.html">解决jquery zclip插件点击无效的问题</a></p><p><a href="http://www.mostclan.com/post-210.html">jQuery 获取当前节点的html包含当前节点的方法</a></p><p><a href="http://www.mostclan.com/post-98.html">返回前一页的两种方法的区别与好处</a></p><p><a href="http://www.mostclan.com/post-79.html">document.body.scrollTop与document.documentElement.scrollTop兼容</a></p></div>]]></description>
	<pubDate>Sat, 05 Nov 2016 07:30:58 +0000</pubDate>
	<author>Battle</author>
	<guid>http://www.mostclan.com/post-163.html</guid>

</item>
<item>
	<title>HTTP Header 详解</title>
	<link>http://www.mostclan.com/post-162.html</link>
	<description><![CDATA[HTTP（HyperTextTransferProtocol）即超文本传输协议，目前网页传输的的通用协议。HTTP协议采用了请求/响应模型，浏览器或其他客户端发出请求，服务器给与响应。就整个网络资源传输而言，包括message-header和message-body两部分。首先传递message- header，即http header消息 。http header 消息通常被分为4个部分：general header, request header, response header, entity header。但是这种分法就理解而言，感觉界限不太明确。根据维基百科对http header内容的组织形式，大体分为Request和Response两部... <a href="http://www.mostclan.com/post-162.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-330.html">乐观锁和悲观锁</a></p><p><a href="http://www.mostclan.com/post-333.html">大小端字节序释义</a></p><p><a href="http://www.mostclan.com/post-203.html">【转发推荐必看】浅谈CSRF攻击方式</a></p><p><a href="http://www.mostclan.com/post-354.html">SSH快捷登录设置</a></p><p><a href="http://www.mostclan.com/post-137.html">贪婪匹配和非贪婪匹配</a></p></div>]]></description>
	<pubDate>Thu, 03 Nov 2016 19:55:32 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-162.html</guid>

</item>
<item>
	<title>PHP高并发uniqid不重复唯一标识符生成方案</title>
	<link>http://www.mostclan.com/post-161.html</link>
	<description><![CDATA[PHP uniqid()函数可用于生成不重复的唯一标识符，该函数基于微秒级当前时间戳。在高并发或者间隔时长极短（如循环代码）的情况下，会出现大量重复数据。即使使用了第二个参数，也会重复，最好的方案是结合md5函数来生成唯一ID。 PHP uniqid() 生成不重复唯一标识方法一 这种方法会产生大量的重复数据，运行如下PHP代码会数组索引是产生的唯一标识，对应的元素值是该唯一标识重复的次数。  ?php $units = array(); for($i=0;... <a href="http://www.mostclan.com/post-161.html">阅读全文&gt;&gt;</a><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.mostclan.com/post-332.html">tp5中使用think-queue</a></p><p><a href="http://www.mostclan.com/post-214.html">百万级PHP网站架构工具箱</a></p><p><a href="http://www.mostclan.com/post-204.html">【原创】ThinkPHP5.0.7缓存空数组的BUG</a></p><p><a href="http://www.mostclan.com/post-343.html">PHP利用parse_str创建任意多维数组</a></p><p><a href="http://www.mostclan.com/post-128.html">register_globals的ON和Off配置</a></p></div>]]></description>
	<pubDate>Sun, 30 Oct 2016 17:05:24 +0000</pubDate>
	<author>Veris</author>
	<guid>http://www.mostclan.com/post-161.html</guid>

</item></channel>
</rss>