<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jean - 记录成长历程 &#187; php</title>
	<atom:link href="http://www.zhangyiqun.net/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zhangyiqun.net</link>
	<description>让世界更美好一点儿</description>
	<lastBuildDate>Wed, 07 Dec 2011 14:04:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>返利系统上线</title>
		<link>http://www.zhangyiqun.net/1287.html</link>
		<comments>http://www.zhangyiqun.net/1287.html#comments</comments>
		<pubDate>Sun, 15 Aug 2010 13:35:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[脚本编程]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.net/?p=1287</guid>
		<description><![CDATA[1.可与UCENTER完美整合，无须用户额外注册帐号 2.可以为不同分组定制返点率 3.用户后台每笔交易有详细记录，包括：未付款，已付款，已退款。已经退款的用户不会返利。 因为这只是一个单纯的返利模块，所以适用性比较广，欢迎联系定制。现在我已经在我的VPN产品中整合了，可以参看下面的演示。 实例演示：https://www.vpn38.net/forum/thread-375-1-1.html<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1111.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1287.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP面向对象常规示例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F517.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1287.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">新手谨慎购买php与mysql程序设计（第三版）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1287.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1287.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>1.可与UCENTER完美整合，无须用户额外注册帐号</p>
<p>2.可以为不同分组定制返点率</p>
<p>3.用户后台每笔交易有详细记录，包括：未付款，已付款，已退款。已经退款的用户不会返利。</p>
<p><span id="more-1287"></span></p>
<p>因为这只是一个单纯的返利模块，所以适用性比较广，欢迎联系定制。现在我已经在我的VPN产品中整合了，可以参看下面的演示。</p>
<p><strong><span style="color: #ff0000;">实例演示：<a href="https://www.vpn38.net/forum/thread-375-1-1.html" target="_blank">https://www.vpn38.net/forum/thread-375-1-1.html</a></span></strong></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1111.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1287.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP面向对象常规示例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F517.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1287.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">新手谨慎购买php与mysql程序设计（第三版）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1287.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1287.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/1287.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>学习WordPress代码的收获1</title>
		<link>http://www.zhangyiqun.net/1274.html</link>
		<comments>http://www.zhangyiqun.net/1274.html#comments</comments>
		<pubDate>Mon, 09 Aug 2010 14:32:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[脚本编程]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.net/?p=1274</guid>
		<description><![CDATA[今天为了开发一个模板相关的功能于是找来WordPress的代码研究，不知不觉一天就过去了。老实说，他们的代码写注释比较到位，官方文档也全，但我看上去还是会觉得一知半解。确实，水平差的不是一点半点，很受打击啊～～～现在调整心态，看不懂也得坚持一下，这种九阳神功类的代码，就得慢慢看，慢慢悟，一点点化为己用。 今天新接触的几个PHP函数 http://php.net/manual/en/function.func-get-args.php http://php.net/manual/en/function.call-user-func-array.php http://php.net/manual/en/function.array-pop.php<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1274.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1111.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1274.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP面向对象常规示例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F956.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1274.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">记录mysql和php的诡异问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F517.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1274.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">新手谨慎购买php与mysql程序设计（第三版）</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>今天为了开发一个模板相关的功能于是找来WordPress的代码研究，不知不觉一天就过去了。老实说，他们的代码写注释比较到位，官方文档也全，但我看上去还是会觉得一知半解。确实，水平差的不是一点半点，很受打击啊～～～现在调整心态，看不懂也得坚持一下，这种九阳神功类的代码，就得慢慢看，慢慢悟，一点点化为己用。</p>
<p>今天新接触的几个PHP函数</p>
<p>http://php.net/manual/en/function.func-get-args.php</p>
<p>http://php.net/manual/en/function.call-user-func-array.php</p>
<p>http://php.net/manual/en/function.array-pop.php</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1274.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1111.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1274.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP面向对象常规示例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F956.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1274.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">记录mysql和php的诡异问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F517.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1274.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">新手谨慎购买php与mysql程序设计（第三版）</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/1274.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在CodeIgniter如何把控制器的数组传给视图？</title>
		<link>http://www.zhangyiqun.net/1203.html</link>
		<comments>http://www.zhangyiqun.net/1203.html#comments</comments>
		<pubDate>Tue, 13 Jul 2010 16:06:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[脚本编程]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.net/?p=1203</guid>
		<description><![CDATA[我有一个遍历数据库返回的需求，代码如下 ?View Code PHP//此处获取的值是一个数组 $this-&#62;load-&#62;database&#40;&#41;; $query = $this-&#62;db-&#62;query&#40;&#34;select ID,title from jscodebox where author='jean'&#34;&#41;; if &#40;$query-&#62;num_rows&#62;0&#41;&#123; $data&#91;'filelist'&#93; = $query; &#125; $this-&#62;load-&#62;view&#40;'box',$data&#41;; &#160; //现在我把这个数组在视图里显示。这里需要注意的是在CodeIgniter中遍历数据库的动作 &#60;ul id=&#34;mycodelist&#34; style=&#34;list-style-type:none;&#34;&#62; &#60;?php foreach&#40;$filelist-&#62;result&#40;&#41; as $item&#41;:?&#62; &#60;li&#62;&#60;?php echo $item-&#62;title;?&#62;&#60;/li&#62; &#60;?php endforeach;?&#62; &#60;/ul&#62;<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1203.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1203.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1203.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Create a REST API with PHP</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F956.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1203.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">记录mysql和php的诡异问题</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>我有一个遍历数据库返回的需求，代码如下</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1203code2'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12032"><td class="code" id="p1203code2"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//此处获取的值是一个数组</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">database</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;select ID,title from jscodebox where author='jean'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">num_rows</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'filelist'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$query</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">view</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'box'</span><span style="color: #339933;">,</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//现在我把这个数组在视图里显示。这里需要注意的是在CodeIgniter中遍历数据库的动作</span>
<span style="color: #339933;">&lt;</span>ul id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mycodelist&quot;</span> style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;list-style-type:none;&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filelist</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">result</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$item</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
	<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$item</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1203.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1203.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1203.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Create a REST API with PHP</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F956.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1203.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">记录mysql和php的诡异问题</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/1203.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP使用GeSHi实现代码高亮</title>
		<link>http://www.zhangyiqun.net/1201.html</link>
		<comments>http://www.zhangyiqun.net/1201.html#comments</comments>
		<pubDate>Tue, 13 Jul 2010 16:00:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[脚本编程]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.net/?p=1201</guid>
		<description><![CDATA[&#60;?php require &#8216;/opt/lampp/htdocs/jqbox/geshi/geshi.php&#8217;; $geshi = new Geshi($code, &#8216;javascript&#8217;); $geshi-&#62;enable_line_numbers(GESHI_FANCY_LINE_NUMBERS); echo  $geshi-&#62;parse_code(); ?&#62; 使用起来还是比较简单的，类封装的不错。官方文档在此：http://qbnz.com/highlighter/geshi-doc.html#the-basics<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1111.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP面向对象常规示例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F517.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">新手谨慎购买php与mysql程序设计（第三版）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Create a REST API with PHP</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>&lt;?php<br />
require &#8216;/opt/lampp/htdocs/jqbox/geshi/geshi.php&#8217;;<br />
$geshi = new Geshi($code, &#8216;javascript&#8217;);<br />
$geshi-&gt;enable_line_numbers(GESHI_FANCY_LINE_NUMBERS);<br />
echo  $geshi-&gt;parse_code();<br />
?&gt;</p>
<p>使用起来还是比较简单的，类封装的不错。官方文档在此：http://qbnz.com/highlighter/geshi-doc.html#the-basics</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1111.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP面向对象常规示例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F517.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">新手谨慎购买php与mysql程序设计（第三版）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Create a REST API with PHP</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/1201.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何执行mysqli不能执行update语句？</title>
		<link>http://www.zhangyiqun.net/1197.html</link>
		<comments>http://www.zhangyiqun.net/1197.html#comments</comments>
		<pubDate>Sun, 11 Jul 2010 05:54:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[脚本编程]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.net/?p=1197</guid>
		<description><![CDATA[$update_query = &#8220;UPDATE users SET credits = (credits &#8211; &#8216;$cred&#8217;) WHERE user_id = (&#8216;$u&#8217;)&#8221;; 此语句用mysqli无法执行，无报错。后改用原生的mysql解决 $con = mysql_connect(&#8220;localhost&#8221;,&#8221;peter&#8221;,&#8221;abc123&#8243;); mysql_select_db(&#8220;my_db&#8221;, $con); mysql_query($update_query);<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1197.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1197.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1197.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Create a REST API with PHP</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1111.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1197.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP面向对象常规示例</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<blockquote><p>$update_query = &#8220;UPDATE users SET credits = (credits &#8211; &#8216;$cred&#8217;) WHERE user_id = (&#8216;$u&#8217;)&#8221;;</p></blockquote>
<p>此语句用mysqli无法执行，无报错。后改用原生的mysql解决</p>
<p>$con = mysql_connect(&#8220;localhost&#8221;,&#8221;peter&#8221;,&#8221;abc123&#8243;);</p>
<p>mysql_select_db(&#8220;my_db&#8221;, $con);</p>
<p>mysql_query($update_query);</p>
<pre></pre>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1197.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1197.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1197.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Create a REST API with PHP</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1111.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1197.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP面向对象常规示例</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/1197.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xdebug的安装</title>
		<link>http://www.zhangyiqun.net/1190.html</link>
		<comments>http://www.zhangyiqun.net/1190.html#comments</comments>
		<pubDate>Thu, 08 Jul 2010 03:52:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[xdebug]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.net/?p=1190</guid>
		<description><![CDATA[作为一个完美主义者，xdebug绝对是必不可少的工具之一。 Installing with PEAR/PECL is as easy as: # pecl install xdebug but you still need to add the correct line to your php.ini: (don&#8217;t forget to change the path and filename to the correct one — but make sure you use the full path) zend_extension="/usr/local/php/modules/xdebug.so" Note: You should ignore any prompts to add &#8220;extension=xdebug.so&#8221; [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1190.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1190.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Create a REST API with PHP</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F517.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1190.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">新手谨慎购买php与mysql程序设计（第三版）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1190.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><span>作为一个完美主义者，xdebug绝对是必不可少的工具之一。</p>
<p>Installing with PEAR/PECL is as easy as:</p>
<pre># pecl install xdebug</pre>
<p>but you still need to add the correct line to your php.ini: (don&#8217;t forget to change the path and filename to the correct one — but make sure you use the <strong>full path</strong>)</p>
<pre>zend_extension="/usr/local/php/modules/xdebug.so"</pre>
<p><strong>Note:</strong> You should ignore any prompts to add &#8220;extension=xdebug.so&#8221; to php.ini — this <strong>will</strong> cause problems.</p>
<p></span></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1190.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1190.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Create a REST API with PHP</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F517.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1190.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">新手谨慎购买php与mysql程序设计（第三版）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1190.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/1190.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get 方法加号处理</title>
		<link>http://www.zhangyiqun.net/1165.html</link>
		<comments>http://www.zhangyiqun.net/1165.html#comments</comments>
		<pubDate>Tue, 29 Jun 2010 12:18:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[脚本编程]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.net/?p=1165</guid>
		<description><![CDATA[用 get 方法 , 参数里有 &#8220;+&#8221; 时，要做处理，否则到后台会变成空格 将参数里的加号进行转换 data = data.replace(/\+/g, &#8220;%2B&#8221;); 当然，用POST传值也不会有这样的问题。但有的时候我们确实更喜欢用GET，那么把&#8217;+'换成&#8217;_'也是个好主意。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1111.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1165.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP面向对象常规示例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1165.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1165.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1165.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Create a REST API with PHP</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>用 get 方法 , 参数里有 &#8220;+&#8221; 时，要做处理，否则到后台会变成空格</p>
<p>将参数里的加号进行转换<br />
data = data.replace(/\+/g, &#8220;%2B&#8221;);</p>
<p>当然，用POST传值也不会有这样的问题。但有的时候我们确实更喜欢用GET，那么把&#8217;+'换成&#8217;_'也是个好主意。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1111.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1165.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP面向对象常规示例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1165.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1165.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1165.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Create a REST API with PHP</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/1165.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CI常用表单验证</title>
		<link>http://www.zhangyiqun.net/1146.html</link>
		<comments>http://www.zhangyiqun.net/1146.html#comments</comments>
		<pubDate>Fri, 18 Jun 2010 14:44:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[脚本编程]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.net/?p=1146</guid>
		<description><![CDATA[$this-&#62;form_validation-&#62;set_rules(&#8216;username&#8217;, &#8216;Username&#8217;, &#8216;trim&#124;required&#124;min_length[5]&#124;max_length[12]&#124;xss_clean&#8217;); $this-&#62;form_validation-&#62;set_rules(&#8216;password&#8217;, &#8216;Password&#8217;, &#8216;trim&#124;required&#124;matches[passconf]&#124;md5&#8242;); $this-&#62;form_validation-&#62;set_rules(&#8216;passconf&#8217;, &#8216;Password Confirmation&#8217;, &#8216;trim&#124;required&#8217;); $this-&#62;form_validation-&#62;set_rules(&#8216;email&#8217;, &#8216;Email&#8217;, &#8216;trim&#124;required&#124;valid_email&#8217;); 在上面的例子里，我们“修整（trimming，去掉字符串两端空白）”了数据，转换密码为MD5，将用户名通过“xss_clean”函数处理去掉了有害数据。 任何PHP自身接收一个参数的函数都可以被用作一个规则，比如 htmlspecialchars, trim, MD5, 等。 注意: 你一般会在验证规则之后使用这些预处理功能，这样如果发生错误，原数据将会被显示在表单。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1146.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Create a REST API with PHP</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1111.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1146.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP面向对象常规示例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1146.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1146.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<blockquote><p>$this-&gt;form_validation-&gt;set_rules(&#8216;username&#8217;, &#8216;Username&#8217;, &#8216;trim|required|min_length[5]|max_length[12]|xss_clean&#8217;);<br />
$this-&gt;form_validation-&gt;set_rules(&#8216;password&#8217;, &#8216;Password&#8217;, &#8216;trim|required|matches[passconf]|md5&#8242;);<br />
$this-&gt;form_validation-&gt;set_rules(&#8216;passconf&#8217;, &#8216;Password Confirmation&#8217;, &#8216;trim|required&#8217;);<br />
$this-&gt;form_validation-&gt;set_rules(&#8216;email&#8217;, &#8216;Email&#8217;, &#8216;trim|required|valid_email&#8217;);</p></blockquote>
<p>在上面的例子里，我们“修整（trimming，去掉字符串两端空白）”了数据，转换密码为MD5，将用户名通过“xss_clean”函数处理去掉了有害数据。</p>
<p><strong>任何PHP自身接收一个参数的函数都可以被用作一个规则，比如 <dfn>htmlspecialchars</dfn>, <dfn>trim</dfn>,  <dfn>MD5</dfn>, 等。</strong></p>
<p><strong>注意:</strong> 你一般会在验证规则<strong>之后</strong>使用这些预处理功能，这样如果发生错误，原数据将会被显示在表单。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1146.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Create a REST API with PHP</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1111.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1146.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP面向对象常规示例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1146.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1146.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/1146.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a REST API with PHP</title>
		<link>http://www.zhangyiqun.net/1132.html</link>
		<comments>http://www.zhangyiqun.net/1132.html#comments</comments>
		<pubDate>Mon, 24 May 2010 15:42:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[脚本编程]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.net/?p=1132</guid>
		<description><![CDATA[最近要写一个web service于是跑去向朋友去取经，大半夜的就抓住了abitno ，询问了xlmrpc和soap他说不知道，并推荐了RESTful给我。搜了一下大部分是ruby的东西，就没怎么放在心上，但是“RESTful哲学”还是在大脑里留下了印象。当翻看soap的文档时不禁被其复杂所困惑，这个东西是在太重口味了，受不了……于是去google了下php rest方面的文章，发现国外在09年就已经有了比较成熟的文章作介绍，仔细翻看了下，认为这个东西对我这个service来讲真是足够了！这个过程中对header也熟悉了不少，这个家伙居然连缓存周期都能控制，真是宝物一件！<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1111.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP面向对象常规示例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F517.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">新手谨慎购买php与mysql程序设计（第三版）</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>最近要写一个web service于是跑去向朋友去取经，大半夜的就抓住了abitno ，询问了xlmrpc和soap他说不知道，并推荐了RESTful给我。搜了一下大部分是ruby的东西，就没怎么放在心上，但是“RESTful哲学”还是在大脑里留下了印象。当翻看soap的文档时不禁被其复杂所困惑，这个东西是在太重口味了，受不了……于是去google了下php rest方面的文章，发现国外在09年就已经有了比较成熟的文章作介绍，仔细翻看了下，认为这个东西对我这个service来讲真是足够了！这个过程中对header也熟悉了不少，这个家伙居然连缓存周期都能控制，真是宝物一件！</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1111.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP面向对象常规示例</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F517.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">新手谨慎购买php与mysql程序设计（第三版）</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/1132.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpmailer使用记录</title>
		<link>http://www.zhangyiqun.net/1125.html</link>
		<comments>http://www.zhangyiqun.net/1125.html#comments</comments>
		<pubDate>Sun, 09 May 2010 15:27:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[脚本编程]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.net/?p=1125</guid>
		<description><![CDATA[For those people having difficulty, this may help a bit. The new version of PHPMailer (5.1) includes an SMTPSecure variable – this is what I have working, hope it helps someone: $mail = new PHPMailer(); $mail-&#62;Mailer = “smtp”; $mail-&#62;Port = 465; $mail-&#62;IsSMTP(); // telling the class to use SMTP $mail-&#62;SMTPSecure = “ssl”; $mail-&#62;Host = “smtp.gmail.com”; [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F956.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1125.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">记录mysql和php的诡异问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1125.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1125.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1125.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Create a REST API with PHP</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>For those people having difficulty, this may help a bit. The new version of PHPMailer (5.1) includes an SMTPSecure variable – this is what I have working, hope it helps someone:</p>
<p>$mail = new PHPMailer();<br />
$mail-&gt;Mailer = “smtp”;<br />
$mail-&gt;Port = 465;<br />
$mail-&gt;IsSMTP();  // telling the class to use SMTP<br />
$mail-&gt;SMTPSecure   = “ssl”;<br />
$mail-&gt;Host     = “smtp.gmail.com”; // SMTP server<br />
$mail-&gt;SMTPAuth = true;     // turn on SMTP authentication<br />
$mail-&gt;SMTPKeepAlive = true;</p>
<p>另外，需要干掉</p>
<p>$mail-&gt;IsSendmail();  // tell the class to use Sendmail</p>
<p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <script type="text/javascript"><!--
        var wumiiSitePrefix = "http://www.zhangyiqun.net";
        var wumiiEnableCustomPos = false;
        var wumiiParams = "&#038;num=4&#038;mode=3&#038;displayInFeed=1&#038;version=1.0.5.5&#038;pf=WordPress3.2.1";
    //--></script><script type="text/javascript" src="http://widget.wumii.com/ext/relatedItemsWidget.htm"></script><a href="http://www.wumii.com/widget/relatedItems.htm" style="border:0;"><img src="http://static.wumii.com/images/pixel.png" alt="无觅相关文章插件，快速提升流量" style="border:0;padding:0;margin:0;" /></a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F956.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1125.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">记录mysql和php的诡异问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1201.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1125.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP使用GeSHi实现代码高亮</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1079.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1125.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php异常控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1132.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1125.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Create a REST API with PHP</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/1125.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: www.zhangyiqun.net @ 2012-02-07 22:25:03 -->
