<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" version="2.0"><channel><atom:link href="http://feed.feedsky.com/codebit" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/codebit" type="application/rss+xml"></fs:self_link><lastBuildDate>Wed, 15 Jun 2011 16:31:16 GMT</lastBuildDate><title>CodeBit.cn</title><description>聚合小段精华代码，内容涉及 PHP、MySQL、(X)HTML、CSS、Javascript、Ajax 、Zend Framework 等方面，翻译转载国外优秀教程。</description><image><url>http://www.feedsky.com/feed/codebit/sc/gif</url><title>CodeBit.cn</title><link>http://www.codebit.cn</link></image><link>http://www.codebit.cn</link><language>en</language><pubDate>Wed, 15 Jun 2011 14:28:39 GMT</pubDate><item><title>解决 PHP 中 usort 在值相同时改变原始位置的问题</title><link>http://www.codebit.cn/php/usort-keep-the-original-order-for-elements-comparing-as-equal.html</link><description>从 PHP 4.1.0 后，usort 在比较的值相同时，原始位置可能会改变，文档中是这样说的：If two members compare as equal, their order in the sorted array is undefined. 也就是说，如果比较的2个值相同，则它们在排序结果中的顺序是随机的。如果你需要保持相同值的原始位置，可以参考本文的方法。 &lt;a
class=&quot;more-link&quot; href=&quot;http://www.codebit.cn/php/usort-keep-the-original-order-for-elements-comparing-as-equal.html&quot;&gt;继续阅读 &lt;span
class=&quot;meta-nav&quot;&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/523118297/codebit/feedsky/s.gif?r=http://www.codebit.cn/php/usort-keep-the-original-order-for-elements-comparing-as-equal.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 16 Jun 2011 00:31:16 +0800</pubDate><guid>http://www.codebit.cn/php/usort-keep-the-original-order-for-elements-comparing-as-equal.html</guid><fs:srclink>http://www.codebit.cn/php/usort-keep-the-original-order-for-elements-comparing-as-equal.html</fs:srclink><fs:srcfeed>http://www.codebit.cn/rss</fs:srcfeed><fs:itemid>feedsky/codebit/~8604193/523118297/4137553</fs:itemid></item><item><title>MySQL 数据库中删除重复记录的方法总结</title><link>http://www.codebit.cn/mysql/deleting-duplicate-rows-in-a-mysql-database.html</link><description>删除 MySQL 数据库中的重复记录是新手们经常会问的一个问题，本文列出了多个解决方法，有的方法需要拥有比较大的权限，如果你也有类似的需求，可以根据自身情况，选择合适的方案。 &lt;a
class=&quot;more-link&quot; href=&quot;http://www.codebit.cn/mysql/deleting-duplicate-rows-in-a-mysql-database.html&quot;&gt;继续阅读 &lt;span
class=&quot;meta-nav&quot;&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/523118298/codebit/feedsky/s.gif?r=http://www.codebit.cn/mysql/deleting-duplicate-rows-in-a-mysql-database.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 16 Jun 2011 00:31:16 +0800</pubDate><guid>http://www.codebit.cn/mysql/deleting-duplicate-rows-in-a-mysql-database.html</guid><fs:srclink>http://www.codebit.cn/mysql/deleting-duplicate-rows-in-a-mysql-database.html</fs:srclink><fs:srcfeed>http://www.codebit.cn/rss</fs:srcfeed><fs:itemid>feedsky/codebit/~8604193/523118298/4137553</fs:itemid></item><item><title>PHP 中检查或过滤 IP 地址</title><link>http://www.codebit.cn/php/ip-filter.html</link><description>网络环境异常复杂，有时候我们不得不禁止一些恶意用户访问，禁止的方式有很多种，其中一种就是通过 IP 来限制，本文提供的方法允许你通过 IP 区间、CIDR（Classless Inter-Domain Routing）及单个 IP 格式来检查或过滤 IP 地址。 &lt;a
class=&quot;more-link&quot; href=&quot;http://www.codebit.cn/php/ip-filter.html&quot;&gt;继续阅读 &lt;span
class=&quot;meta-nav&quot;&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/523118299/codebit/feedsky/s.gif?r=http://www.codebit.cn/php/ip-filter.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 16 Jun 2011 00:31:16 +0800</pubDate><guid>http://www.codebit.cn/php/ip-filter.html</guid><fs:srclink>http://www.codebit.cn/php/ip-filter.html</fs:srclink><fs:srcfeed>http://www.codebit.cn/rss</fs:srcfeed><fs:itemid>feedsky/codebit/~8604193/523118299/4137553</fs:itemid></item><item><title>正则表达式：匹配至少有一个非空白字符并且不超过指定长度</title><link>http://www.codebit.cn/javascript/regex-match-at-least-one-non-space-character.html</link><description>最近需要用到一个验证，规则为：至少有一个非空白字符并且不超过指定长度，想用正则表达式来处理，上网搜了一下，发现其他人也有和我一样的需求，并且有高手给了几个很精彩的解决方案，现将网上的解决方案整理一下，以备其他有相同需求的人参考。 &lt;a
class=&quot;more-link&quot; href=&quot;http://www.codebit.cn/javascript/regex-match-at-least-one-non-space-character.html&quot;&gt;继续阅读 &lt;span
class=&quot;meta-nav&quot;&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/523118300/codebit/feedsky/s.gif?r=http://www.codebit.cn/javascript/regex-match-at-least-one-non-space-character.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 16 Jun 2011 00:31:16 +0800</pubDate><guid>http://www.codebit.cn/javascript/regex-match-at-least-one-non-space-character.html</guid><fs:srclink>http://www.codebit.cn/javascript/regex-match-at-least-one-non-space-character.html</fs:srclink><fs:srcfeed>http://www.codebit.cn/rss</fs:srcfeed><fs:itemid>feedsky/codebit/~8604193/523118300/4137553</fs:itemid></item><item><title>PHP 的 array_diff() 函数在处理大数组时的效率问题</title><link>http://www.codebit.cn/php/php-526-array-diff-problem.html</link><description>PHP 5.2.6 以上版本的 array_diff() 函数在处理大数组时，需要花费超长时间，这个 bug 已经被官方确认；在这个问题被修复之前或者在我们不能控制 PHP 版本的时候，可以使用本文提供的方法。 &lt;a
class=&quot;more-link&quot; href=&quot;http://www.codebit.cn/php/php-526-array-diff-problem.html&quot;&gt;继续阅读 &lt;span
class=&quot;meta-nav&quot;&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/523118301/codebit/feedsky/s.gif?r=http://www.codebit.cn/php/php-526-array-diff-problem.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 16 Jun 2011 00:31:16 +0800</pubDate><guid>http://www.codebit.cn/php/php-526-array-diff-problem.html</guid><fs:srclink>http://www.codebit.cn/php/php-526-array-diff-problem.html</fs:srclink><fs:srcfeed>http://www.codebit.cn/rss</fs:srcfeed><fs:itemid>feedsky/codebit/~8604193/523118301/4137553</fs:itemid></item><item><title>Javascript 中使用 exec 进行正则表达式全局匹配时的注意事项</title><link>http://www.codebit.cn/javascript/javascript-regex-exec.html</link><description>在 Javascript 中使用 exec 进行正则表达式全局匹配时，有一个非常容易犯的错误，这是因为 exec() 在全局模式下的行为稍微有点复杂。本文就是介绍在使用 Javascript 中使用 exec 进行正则表达式全局匹配时的注意事项。 &lt;a
class=&quot;more-link&quot; href=&quot;http://www.codebit.cn/javascript/javascript-regex-exec.html&quot;&gt;继续阅读 &lt;span
class=&quot;meta-nav&quot;&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/523118302/codebit/feedsky/s.gif?r=http://www.codebit.cn/javascript/javascript-regex-exec.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 16 Jun 2011 00:31:16 +0800</pubDate><guid>http://www.codebit.cn/javascript/javascript-regex-exec.html</guid><fs:srclink>http://www.codebit.cn/javascript/javascript-regex-exec.html</fs:srclink><fs:srcfeed>http://www.codebit.cn/rss</fs:srcfeed><fs:itemid>feedsky/codebit/~8604193/523118302/4137553</fs:itemid></item><item><title>在 XSLTProcessor 中 registerPHPFunctions 后无法调用 php 函数</title><link>http://www.codebit.cn/php/xslt-register-php-functions.html</link><description>XSLT 是一个非常方便的转换 XML 的工具，PHP 里面是通过 XSLTProcessor 来实现；XSLT 中内置了许多有用的函数，同时，只需要调用 XSLTProcessor  实例的 registerPHPFunctions 方法，我们就可以在 XSLT 中直接使用 PHP 的函数，这大大增强了 XSLT 的处理能力。
但是，在 XSLT 中使用 PHP 函数时，很多人会遇到 “Warning: XSLTProcessor::trans bound to undefined prefix php” 的错误提示。如果你也遇到这个问题，那请继续浏览本文吧！ &lt;a
class=&quot;more-link&quot; href=&quot;http://www.codebit.cn/php/xslt-register-php-functions.html&quot;&gt;继续阅读 &lt;span
class=&quot;meta-nav&quot;&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/523118303/codebit/feedsky/s.gif?r=http://www.codebit.cn/php/xslt-register-php-functions.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 16 Jun 2011 00:31:16 +0800</pubDate><guid>http://www.codebit.cn/php/xslt-register-php-functions.html</guid><fs:srclink>http://www.codebit.cn/php/xslt-register-php-functions.html</fs:srclink><fs:srcfeed>http://www.codebit.cn/rss</fs:srcfeed><fs:itemid>feedsky/codebit/~8604193/523118303/4137553</fs:itemid></item><item><title>在 Zend Framework MVC 下禁用 view 或者 layout</title><link>http://www.codebit.cn/zend-framework/zend-framework-disable-view.html</link><description>Zend Framework 内置了 MVC 开发架构，功能非常强大，其中 Zend_Controller 在使用的时候会根据 module/controller/action 自动解析对应的 view ，如果找不到就会抛错；但是有时候我们并不想使用 view 层，这时候我们就需要禁用 view 或者 layout 了，本文就是对禁用 view 或者 layout 所做的总结。 &lt;a
class=&quot;more-link&quot; href=&quot;http://www.codebit.cn/zend-framework/zend-framework-disable-view.html&quot;&gt;继续阅读 &lt;span
class=&quot;meta-nav&quot;&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/523118304/codebit/feedsky/s.gif?r=http://www.codebit.cn/zend-framework/zend-framework-disable-view.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 16 Jun 2011 00:31:16 +0800</pubDate><guid>http://www.codebit.cn/zend-framework/zend-framework-disable-view.html</guid><fs:srclink>http://www.codebit.cn/zend-framework/zend-framework-disable-view.html</fs:srclink><fs:srcfeed>http://www.codebit.cn/rss</fs:srcfeed><fs:itemid>feedsky/codebit/~8604193/523118304/4137553</fs:itemid></item><item><title>Javascript 中阻止浏览器默认操作</title><link>http://www.codebit.cn/javascript/stop-browser-default-action.html</link><description>在浏览器事件中，会触发一些默认动作，比如：点击一个链接时，执行完捕获／冒泡动作后，会触发链接的默认事件：跳转到指定链接地址。
在很多时候，我们需要改变这些默认操作，比如：点击一个链接时，我们执行一些 ajax 操作，但是我们并不希望执行跳转动作，于是，就有了本文：阻止浏览器默认操作。 &lt;a
class=&quot;more-link&quot; href=&quot;http://www.codebit.cn/javascript/stop-browser-default-action.html&quot;&gt;继续阅读 &lt;span
class=&quot;meta-nav&quot;&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/523118305/codebit/feedsky/s.gif?r=http://www.codebit.cn/javascript/stop-browser-default-action.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 16 Jun 2011 00:31:16 +0800</pubDate><guid>http://www.codebit.cn/javascript/stop-browser-default-action.html</guid><fs:srclink>http://www.codebit.cn/javascript/stop-browser-default-action.html</fs:srclink><fs:srcfeed>http://www.codebit.cn/rss</fs:srcfeed><fs:itemid>feedsky/codebit/~8604193/523118305/4137553</fs:itemid></item><item><title>负边距(negative margin)的相关问题整理</title><link>http://www.codebit.cn/css/negative-margin.html</link><description>负边距(negative margin)在页面制作过程中，有许多妙用，用的好了能让原本复杂的问题变的简单，本文是针对负边距相关问题的整理，欢迎各位补充。 &lt;a
class=&quot;more-link&quot; href=&quot;http://www.codebit.cn/css/negative-margin.html&quot;&gt;继续阅读 &lt;span
class=&quot;meta-nav&quot;&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/523118306/codebit/feedsky/s.gif?r=http://www.codebit.cn/css/negative-margin.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 16 Jun 2011 00:31:16 +0800</pubDate><guid>http://www.codebit.cn/css/negative-margin.html</guid><fs:srclink>http://www.codebit.cn/css/negative-margin.html</fs:srclink><fs:srcfeed>http://www.codebit.cn/rss</fs:srcfeed><fs:itemid>feedsky/codebit/~8604193/523118306/4137553</fs:itemid></item></channel></rss>
