<?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>Seven Two Blog &#187; 开源软件</title>
	<atom:link href="http://www.seven2.com.cn/archives/category/oss/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seven2.com.cn</link>
	<description></description>
	<lastBuildDate>Fri, 02 Dec 2011 13:47:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>webERP 于2011年6月12日发布 4.04.4 版</title>
		<link>http://www.seven2.com.cn/archives/838/</link>
		<comments>http://www.seven2.com.cn/archives/838/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 10:08:15 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[webERP]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=838</guid>
		<description><![CDATA[最新版4.04.4 下载，webERP 安装下载地址：http://sourceforge.net/projects/web-erp/ 该文件包已经包插使用手册。 什么是webERP？ webERP是一个完整的基于Web的会计核算和业务管理系统，只需要一个网络浏览器和PDF阅读器使用。它有一个特点，特别是对分布在批发，分销及制造业务的许多企业适用范围广。这是发展成为一个开放源码的应用，并作为免费下载使用。该功能设置是不断扩大的新业务和开发人员采纳。 目前，平均每月5000下载。 采用的webERP增长已经完全是通过口耳见证词 &#8211; 从未有过营销或广告推到“卖”webERP。当然也有商业动机，也没有资金做免费软件等。而是这种增长是建立在坚实的声誉和实用功能，工程，审判和越来越多的企业进行测试。 webERP代码开发的一致性和简单性考虑，使PHP“脚本”构成webERP是只有一个PHP脚本的基本知识和webERP结构可读性。每一个机会采取移除代码的抽象，使清晰的逻辑尽可能的读码器。简单的代码使得为方便修改和维护的代码应另一功能是必需的。它也给企业的权力，使软件做的正是企业需要它做的。 webERP可轻松配置，在任何操作系统和计算机处理的要求有着惊人的光芒。虽然webERP可以通过内部局域网运行，第三方网络托管外部的业务有效地减少任何维护任何服务器硬件内部的IT成本。只有连接到互联网才能使用webERP。该业务是现在摆脱了IT基础设施和许可，可以对许多企业大量消耗的成本。 云计算 这种“云计算”里的应用程序可以在互联网上的任何地方居住，并提供通过“云”已成为近期的大趋势和效益的经营理念正在被广泛理解。 “云计算”自2003年以来一直为webERP用户的现实，在许多方面已经领先于它的时间。 为什么webERP？ webERP是一个开源项目。因此有与没有使用该系统的相关费用。此外，服务供应商之间存在竞争，提供最佳和最经济有效的支持。服务提供者更容易获得，因为源代码的可用性实现与PHP知识（网络编程语言webERP使用）那些能够确定到底是什么样的处理由系统执行。在专有系统中，这种信息通常是不适用甚至持牌商支持 &#8211; 他们需要沟通，以供响应软件供应商。随着信息提供给支持，即使在业务人员，对支持的质量也有可能得到更好的软件，可向执行完全一样的业务需要它。 webERP有一个特点，许多不同的管理形式适合各种企业。从一个简单的菜单结构面，复杂的业务流程是方便 &#8211; 如多库存地点，多种货币，大量的库存和序列号跟踪，想了解更多请查看产品特点介绍 。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢的：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="webERP 简体中文安装过程" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F762%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F838%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/01/20/2236495.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">webERP 简体中文安装过程</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP CURL 函数库安裝和使用详细说明" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F758%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F838%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP CURL 函数库安裝和使用详细说明</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="确保 PHP 应用程序的安全" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F502%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F838%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/01/30/2472149.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">确保 PHP 应用程序的安全</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="php" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F764%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F838%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">php</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP str_replace() 函数，替换字符串中的一些字符" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F766%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F838%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP str_replace() 函数，替换字符串中的一些字符</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" 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>
		<wfw:commentRss>http://www.seven2.com.cn/archives/838/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XHProf php轻量级的性能分析工具使用手册（中文版）</title>
		<link>http://www.seven2.com.cn/archives/831/</link>
		<comments>http://www.seven2.com.cn/archives/831/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 02:04:02 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[性能分析工具]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=831</guid>
		<description><![CDATA[目录 导言 XHProf 概况 安装XHProf扩展 使用XHProf进行性能分析 设置XHProf用户界面 在生产环境中使用XHProf注意事项 轻量级采样模式 附加功能 信赖 鸣谢 导言 XHProf 是一个分层PHP性能分析工具。它报告函数级别的请求次数和各种指标，包括阻塞时间，CPU时间和内存使用情况。一个函数的开销，可细分成调用者和被调用者的开销。原始数据收集部分是用纯C实现的，是一个名叫xhprof的 Zend扩展 。XHProf有一个简单的HTML的用户界面（ PHP写成的）。基于浏览器的性能分析用户界面能更容易查看，或是与同行们分享成果。也能绘制调用关系图。 XHProf 报告往往可以有助于理解被执行的代码的结构。的等级性质的报告可用来确定，例如，什么链要求导致了所谓的特殊功能得到。 XHProf 可以比较两次运行的结果（又名“差异报告”）或是从多次运行得到的汇总数据。差异和汇总报告，就像单一运行报告一样，也提供“平板”以及“分层”的性能分析视图。 XHProf 是一种轻量级的性能分析工具。在数据收集阶段，它记录调用次数的追踪和包容性的指标弧在动态callgraph的一个程序。它独有的数据计算的报告/后处理阶段。在数据收集时，XHProfd通过检测循环来处理递归的函数调用，并通过给递归调用中每个深度的调用一个有用的命名来避开死循环。 XHProf 的轻量级性质和汇聚功能，使得它非常适合用于收集“生产环境”的性能统计数据的统计。[见用于生产环境的补充说明。 ] 例如,XHProfLive （不属于开源的工具包），是Facebook使用的一个全系统的性能监测系统，建立在XHProf的基础之上 。 XHProfLive不断收集函数级别的Profiler资料,这些资料来自生产环境中运行中的示例页面［用xhprof来收集] 。然后XHProfLive汇总指定的时候，页面类型，来取得各个页面的性能数据，可以帮助解决各种问题，如：特定的某个网页的函数级的性能情况怎样？在所有网页中，或者对某一具体的网页，foo 函数的开销如何？在过去的一小时/天/周中，哪些函数返回的次数最多？某个页面／函数的执行时间的变化趋势如何？等等。&#160; 由Facebook最初开发的XHProf在2009年3月开放源代码。 XHProf 概况 XHProf提供的功能： 扁平的性能概要（截图 ）提供函数级别的性能信息，例如调用次数，其中包括/独家壁时间，内存使用情况，和CPU时间。 分层剖析（父/子{0视图）{/0} （ 截图 ）对每一个函数，它提供了一个断点,个崩溃的要求和时间每母公司（来电）和儿童（被调用） ，如： 哪些函数调用了指定的函数，各自调了多少次? 一个特定的函数调用了哪些函数？ 在被一个特定的函数调用时，某个函数一共耗去了多少时间 。 差异报告出于各种原因,您可能需要比较从两个XHProf运行中得到的数据-找出是什么造成了从一个版本到另一个版本的退步，或是评估您将要做的优化的性能提升。阿差异报告考虑两分，作为输入，并提供两个平面功能级别差异的信息，和层次信息（细目差异的父母/儿童职能）的每个功能。差异报告里的“平板”视图指出了最主要的退步或改进。点击差异报告平板视图中的函数，进入“层次”（或父/子）视图。我们可以得到的具体的父子函数的差异。 Callgraph视图性能数据也可以通过callgraph视图来查看 。callgraph 会高亮显示程序的关键路径。 内存剖析XHProf的内存剖析模式能有助于跟踪那些申请大量内存的函数。值得澄清的是,XHProfu并不严格跟踪所有分配/释放内存的操作。相反，它使用了一种简化思路。他记录了每个函数进入和结束后的内存的增减。它还记录每个函数分配内存的峰值的变化。 XHProf记录include, include_once, require [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢的：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="php.ini中文注释" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F392%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F831%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">php.ini中文注释</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="确保 PHP 应用程序的安全" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F502%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F831%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/01/30/2472149.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">确保 PHP 应用程序的安全</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP CURL 函数库安裝和使用详细说明" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F758%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F831%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP CURL 函数库安裝和使用详细说明</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="php" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F764%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F831%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">php</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="在 PHP 中养成 7 个面向对象的好习惯" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F396%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F831%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">在 PHP 中养成 7 个面向对象的好习惯</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" 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>
		<wfw:commentRss>http://www.seven2.com.cn/archives/831/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Godaddy 空间使用 CodeIgniter .htaccess 的设置</title>
		<link>http://www.seven2.com.cn/archives/804/</link>
		<comments>http://www.seven2.com.cn/archives/804/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 15:29:12 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Godaddy]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=804</guid>
		<description><![CDATA[前段时间我用 CodeIgniter 完成了一个项目上传到 Godaddy 空间发现 .htaccess 的设置出了问题，花了一个晚上寻找原因，后来在 Codeigniter 社区了解到 .htaccess 允许您设置使用 URI 段和查询字符串在一起并且 CodeIgniter 也允许我们使用自定义 URL 的。 打开&#8217;/system/application/config/config.php&#8217; 查找 $config['uri_protocol'] = “AUTO”; 并将其注释掉后将以下的代码复制到其后面； $config['uri_protocol'] = "APP_PATH"; //enable query strings if required. $config['enable_query_strings'] = TRUE; 将以下的代码复制到根目录的 .htaccess 文件中: RewriteEngine On RewriteBase / RewriteCond %{ENV:REDIRECT_APP_PATH} !^$ RewriteRule ^(.*)$ - [E=APP_PATH:%{ENV:REDIRECT_APP_PATH}] RewriteCond %{ENV:APP_PATH} ^$ RewriteRule ^(.*)$ - [E=APP_PATH:/$1] [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢的：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="让你的 CodeIgniter 自动配置基本 URL" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F731%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F804%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">让你的 CodeIgniter 自动配置基本 URL</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="CodeIgniter 发布 1.7.2 版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F695%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F804%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">CodeIgniter 发布 1.7.2 版</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="CodeIgniter 1.7.1 中文手册" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F682%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F804%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">CodeIgniter 1.7.1 中文手册</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP 敏捷开发框架 CodeIgniter" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F683%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F804%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP 敏捷开发框架 CodeIgniter</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="CodeIgniter 根据不同的二级域名来调用不同的 config 文件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F760%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F804%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">CodeIgniter 根据不同的二级域名来调用不同的 config 文件</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" 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>
		<wfw:commentRss>http://www.seven2.com.cn/archives/804/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让你的 ECShop 新增收藏商品排行榜功能</title>
		<link>http://www.seven2.com.cn/archives/793/</link>
		<comments>http://www.seven2.com.cn/archives/793/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 13:45:45 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[ECShop]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=793</guid>
		<description><![CDATA[前段时间在淘宝看到收藏排行榜的功能，说实话的我很少去逛淘宝店的，至于它这个功能什么时候的也我不清楚。但本人这个功能也不错，可以让浏览者更容易关注商品和被关注商品的热度也可以促进销售。自己也想想在 ECShop 做了这个功能也不错，好的，有了想法就应该付偖行动。 前面说哪么费话都是想把广告位旁边的空白满，这样更便于大家看以下的代码。 关于这个函数的说明： 这个函数可以放在 /includes/lib_goods.php 或 /includes/lib_main.php 文件中，本人更喜欢放在前者。 关于这个函数的默认值： 时间：三个月（收藏商品统计时间）； 获取数据的条数：5条； 如果这两个在后台修改的话，可自行在 ECShop 后台 ‘商店设置’ =》 ‘显示设置’中添加这个两选项。 /** * 收藏商品排行榜 * @author Seven2 * @license http://www.seven2.com.cn/archives/793/ * @version v.10 * @since 2010-08-19 * @access public * @return array */ function get_collect_goods() { switch ($GLOBALS['_CFG']['collect_time']) { case 1: // 一年 $base_where = '`c`.`add_time` &#62;= [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢的：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="使用 PHP 的 header 函数将非 www 重定向到 www 版本的URL" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F805%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F793%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 PHP 的 header 函数将非 www 重定向到 www 版本的URL</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="10个小型 JavaScript 的库(很值得收藏哦！)" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F708%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F793%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">10个小型 JavaScript 的库(很值得收藏哦！)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="8大破解微软xp黑屏方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F57%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F793%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/01/20/2236831.bmp" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">8大破解微软xp黑屏方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="确保 PHP 应用程序的安全" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F502%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F793%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/01/30/2472149.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">确保 PHP 应用程序的安全</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="如何监控上网行为 提供绿色网络办公环境" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F356%2F&from=http%3A%2F%2Fwww.seven2.com.cn%2Farchives%2F793%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/2236453.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">如何监控上网行为 提供绿色网络办公环境</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" 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>
		<wfw:commentRss>http://www.seven2.com.cn/archives/793/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DISCUZ 架构:积分系统代码分析</title>
		<link>http://www.seven2.com.cn/archives/776/</link>
		<comments>http://www.seven2.com.cn/archives/776/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 13:23:59 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[comsenz]]></category>
		<category><![CDATA[discuz]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=776</guid>
		<description><![CDATA[1.登陆积分显示 首先是登陆，登陆的时候论坛从cdb_members中取出一些发帖数，积分，扩展积分等等设置，在./include/common.inc.php中有如下代码： 以下为引用的内容： $membertablefields = &#8216;m.uid AS discuz_uid, m.username AS discuz_user, m.password AS discuz_pw, m.secques AS discuz_secques, m.adminid, m.groupid, m.groupexpiry, m.extgroupids, m.email, m.timeoffset, m.tpp, m.ppp, m.posts, m.digestposts, m.oltime, m.pageviews, m.credits, m.extcredits1, m.extcredits2, m.extcredits3, m.extcredits4, m.extcredits5, m.extcredits6, m.extcredits7, m.extcredits8, m.timeformat, m.dateformat, m.pmsound, m.sigstatus, m.invisible, m.lastvisit, m.lastactivity, m.lastpost, m.newpm, m.accessmasks, m.xspacestatus, m.editormode, m.customshow&#8217;; 以上就是取出数据库中的会员用到的字段。 发帖，回复，发附件，下附件等的积分增加或减少 2.发帖，回复积分增减 (1)原理分析： [...]]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/776/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用 Yahoo YSlow 分析我们页面</title>
		<link>http://www.seven2.com.cn/archives/768/</link>
		<comments>http://www.seven2.com.cn/archives/768/#comments</comments>
		<pubDate>Wed, 26 May 2010 14:06:15 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[开源软件]]></category>
		<category><![CDATA[yahoo]]></category>
		<category><![CDATA[YSlow]]></category>
		<category><![CDATA[网站优化]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=768</guid>
		<description><![CDATA[YSlow 是由美国 Yahoo 团队开发的一个页面评分插件，非常的棒，从中我们可以看出我们页面哪些不足，并且可以知道我们改怎么却改进和优化。该插件是基于 FireFox Firebug 的，目前最新版本：2.0.7，想了解更多敬请访问 YSlow 的官方网站：http://developer.yahoo.com/yslow/ 本人建议大家在看 YSlow 评分规则之前先看看 Yahoo！给出的34条网站加速方法 http://www.seven2.com.cn/archives/693/ 仔细研究了下 YSlow 跌评分规则，主要有12条： 1. Make fewer HTTP requests 尽可能少的http请求。 我们有141个请求（其中15个JS请求，3个CSS请求，47个CSS background images请求），多的可怕。思考了下，为什么把这个三种请求过多列为对页面加载的重要不利因素呢，而过多的IMG请求并没有列为不利因素呢？ 发现原来这些请求都是可以避免的。 15个JS和3个CSS完全可以通过特殊的办法进行合并（这个技术部已经帮我们解决了，实在是太感谢了，嘿嘿。），这样合并以后，一般情况下页面上只会出现一个JS和一个CSS（对JS的封装得有一定的要求）。 但是47个CSS background images请求改怎么解决呢？为什么页面上的纯IMG请求时合理的，而CSS background images请求过多就是不利因素了呢。这个我想了很久，总算明白，原来是这样的： 一般页面上的ICON，栏目背景啊，图片按钮啊，我们都会用图片CSS背景来实现，而一般这个图片CSS背景用到的图片都是比较小的，所以完全可以把这些图片合并成一个相对比较大的图片，这样页面上只会出现一个CSS background images请求，最多也就2-3个。后来仔细看了下雅虎美国的页面，他们的确也是这样做的，虽然这样做需要花一定的时间来有规则的合并这些ICON，栏目背景，图片按钮，以方便CSS调用，但是这样做绝对是合算的，而且是有必要的，YSlow也是极力推荐的。 2. Use a CDN 这项我们的评分是F级，最低。 说实在的，我刚开始什么是CDN都不知道。后来查了GOODLE才知道。CDN的全称是Content Delivery Network，即内容分发网络。其目的是通过在现有的Internet中增加一层新的网络架构，将网站的内容发布到最接近用户的网络”边缘”，使用户可以就近取得所需的内容，解决Internet网络拥挤的状况，提高用户访问网站的响应速度。从技术上全面解决由于网络带宽小、用户访问量大、网点分布不均等原因所造成的用户访问网站响应速度慢的问题。看来上述的解释后，基本上明白了CDN是怎么回事，后来咨询了下中文站点SA，得知我们网站目前的确还没有做CDN的优化，但是据说我们有更加先进的技术来解决类似的问题（具体什么技术那就保密了），但是毕竟CDN也是个相当不错的技术，所以在我们先进技术的基础上在做CDN优化，肯定比现在更好，嘿嘿。据说SA明年会做几个点的CND。 3.  Add an Expires header 设置过期的HTTP Header。 设置Expires Header可以将脚本, 样式表, 图片, Flash等缓存在浏览器的Cache中。其实我们网站也做了这个优化，至少图片在这个上做过优化，但是没有做完全。我们的CSS和JS都还没有做过优化，倒是外部引入的一个广告JS做了，呵呵。其实设置过期的HTTPHeader [...]]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/768/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP str_replace() 函数，替换字符串中的一些字符</title>
		<link>http://www.seven2.com.cn/archives/766/</link>
		<comments>http://www.seven2.com.cn/archives/766/#comments</comments>
		<pubDate>Thu, 20 May 2010 13:04:44 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=766</guid>
		<description><![CDATA[str_replace() 函数 定义和用法 str_replace() 函数使用一个字符串替换字符串中的另一些字符，对大小写敏感。 str_replace() 函数最早出现在 PHP 3 。 语法 str_replace(find,replace,string,count) 参数 描述 find 必需。规定要查找的值。 replace 必需。规定替换 find 中的值的值。 string 必需。规定被搜索的字符串。 count 可选。一个变量，对替换数进行计数。 提示和注释 注释：该函数对大小写敏感。请使用 str_ireplace() 执行对大小写不敏感的搜索。 注释：该函数是二进制安全的。 例子 例子 1 &#60;?php echo str_replace("world","John","Hello world!"); ?&#62; 输出： Hello John! 例子 2 在本例中，我们将演示带有数组和 count 变量的 str_replace() 函数： &#60;?php $arr = array("blue","red","green","yellow"); print_r(str_replace("red","pink",$arr,$i)); echo "Replacements: $i"; ?&#62; 输出： [...]]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/766/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP str_pad() 函数把字符串填充为指定的长度</title>
		<link>http://www.seven2.com.cn/archives/764/</link>
		<comments>http://www.seven2.com.cn/archives/764/#comments</comments>
		<pubDate>Sun, 16 May 2010 00:40:49 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=764</guid>
		<description><![CDATA[定义和用法 str_pad() 函数把字符串填充为指定的长度。 str_pad() 函数最早出现在 PHP 4 。 参数 描述 string 必需。规定要填充的字符串。 length 必需。规定新字符串的长度。如果该值小于原始字符串的长度，则不进行任何操作。 pad_string 可选。规定供填充使用的字符串。默认是空白。 pad_type 可选。规定填充字符串的那边。 可能的值： STR_PAD_BOTH &#8211; 填充到字符串的两头。如果不是偶数，则右侧获得额外的填充。 STR_PAD_LEFT &#8211; 填充到字符串的左侧。 STR_PAD_RIGHT &#8211; 填充到字符串的右侧。这是默认的。 语法 str_pad(string,length,pad_string,pad_type) 例子 1 &#60;?php $str = "Hello World"; echo str_pad($str,20,"."); ?&#62; 输出： Hello World......... 例子 2 &#60;?php $str = "Hello World"; echo str_pad($str,20,".",STR_PAD_LEFT); ?&#62; 输出： .........Hello [...]]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/764/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>webERP 简体中文安装过程</title>
		<link>http://www.seven2.com.cn/archives/762/</link>
		<comments>http://www.seven2.com.cn/archives/762/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 15:10:04 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[开源软件]]></category>
		<category><![CDATA[webERP]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=762</guid>
		<description><![CDATA[webERP 安装包(目前最新版:3.11.2) 下载地址 http://sourceforge.net/projects/web-erp/ webERP 中文包下载地址,中文包也包含 webERP 的中文手册 http://sourceforge.net/projects/web-erp/files/ 在安装 webERP 之前请开启 PHP 的 MySQLi 扩展库,否则在安装过程会报 MySQLi 没有定义的; webERP 的安装过程就不在这里详说啦; 把 WebERP 简体中文包解压缩之后,复制到 ” /locale/ “,并将.utf-8去掉,否则会过长; 修改头部文件 ” /includes/header.inc ” ,将第10行和19行的”iso-8859-1&#8243; 改为 “UTF-8&#8243;,还有其他文件也要改修的,否则会报错的,如:”SalesCategories.php”,建议使用 Dreamweaver 来整站搜索替换掉; 登陆 WebERP，在” Setup-&#62;User Maintenance “，将用户的” Language “的值改为 “zh_CN”; webERP 简介: WebERP是Logic Works Ltd公司开发的财务与ERP管理软件，包括全面的财务特性：含总帐、应收/应付帐目，以及基于角色的安全机制和非常习惯的Web前端；面向类似制造业的业务流程，包括支持订单与库存管理。 系统特点 随着Internet互联网高速发展，传统的传真机亦逐渐被电子邮箱所取代，现代化的商业交易系统也很好地适应了新的环境，地理上的障碍逐渐消失，人们只需通过Internet在屏幕点击按钮即可实现商业交易。 WebERP就是灵活、易用与可靠的Web应用软件： 提供可靠和完整的数据架构于坚固Apache Web服务器，使用安全可靠的MySQL或Postgres数据库以及主流的PHP语言提供基于Web软件便于雇员、客户和供应商使用全球75%的人可以访问Internet，甚至可以通过掌上电脑、手机来使用WebERP，更节省了VPN等远程网络设备投资开放源代码软件省钱并方便扩展和修改开放源代码软件，节省商业软件许可费用，同时便于扩展、裁剪和修改只需要短短几个小时，您就可以实现“订单-库存-采购-报价-发票-收款-生产”，同时支持多币种、多税制、多仓库，完全适用于中小企业。 软件功能 WebERP [...]]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/762/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter 根据不同的二级域名来调用不同的 config 文件</title>
		<link>http://www.seven2.com.cn/archives/760/</link>
		<comments>http://www.seven2.com.cn/archives/760/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 08:42:23 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=760</guid>
		<description><![CDATA[CodeIgniter ）根据不同的二级域名来调用不同的 config 文件，至于有什么用，我不在这里细说啦，你认为有用就拿去用吧。 需要修改的地方：“/system/codeigniter/common.php”的 get_config 函数，将 get_config 函数修改为如下： function get_config(){ static $main_conf; $get_url = $_SERVER['HTTP_HOST']; $get_url = explode('.', $get_url); $config_prefix = $get_url['0']; if ( ! isset($main_conf)) { if ( ! file_exists(APPPATH.'config/'.$config_prefix.'_config'.EXT)) { exit('The configuration file config'.EXT.' does not exist.'); } require(APPPATH.'config/'.$config_prefix.'_config'.EXT); if ( ! isset($config) OR ! is_array($config)) { exit('Your config file does not [...]]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/760/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>PHP CURL 函数库安裝和使用详细说明</title>
		<link>http://www.seven2.com.cn/archives/758/</link>
		<comments>http://www.seven2.com.cn/archives/758/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 16:16:58 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=758</guid>
		<description><![CDATA[CURL安装: 以下的安装以window为例 第一步:在php.ini的文件找出;extension=php_curl.dll将”;”去掉,如果不知道你的php.ini請用phpinfo()來查看. 第二步:把php目录中的libeay32.dll,ssleay32.dll拷到c:\windows\system32里面; 第三步:重启apache; 执行以下的代码来检查CURL是否安装正确或用phpinfo(); &#60;?php //初始化curl $ch = curl_init() or die (curl_error()); //echo “测试一下”; //设置URL参数; curl_setopt($ch,CURLOPT_URL,”http://www.seven2.com.cn/”); //要求CURL返回数据 curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); //执行请求 $result = curl_exec($ch) or die (curl_error()); //取得返回的结果，并显示 echo $result; echo curl_error($ch); //关闭CURL; curl_close($ch); ?&#62; 以下是CURL中文说明了，有很多的参数。大部份都很有用。真正掌握了它和正则，一定就是个采集高手了。 PHP中的CURL函数库（Client URL Library Function） curl_close            — 关闭一个curl会话； curl_copy_handle      — 拷贝一个curl连接资源的所有内容和参数； curl_errno   [...]]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/758/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XMind 3.1 新版发布</title>
		<link>http://www.seven2.com.cn/archives/733/</link>
		<comments>http://www.seven2.com.cn/archives/733/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 13:29:43 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[开源软件]]></category>
		<category><![CDATA[XMind]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=733</guid>
		<description><![CDATA[2009年11月23日，XMind 作为思维导图、可视化思考和协作领域软件的领跑者，在今天宣布其获奖产品 XMind 3.1  新版发布。新版 XMind 将针对更多的用户，发挥其更强大的作用。 现在让我们来了解一下强大的新版都做了哪些改动： 新功能： 1. 默认风格，现在可以很方便地设置你喜欢的风格，甚至可以把你自己设定的风格用在新图里。 2. 头脑风暴模式，帮助你获得灵感，并节省更多的时间。 3. 强大的搜索功能，现在适用于所有的工作簿，也就意味着你可以很快地在所有打开的XMind文件中找出有用的信息。 4. 相对链接，让 XMind 成为你的助手，帮助你更好地管理文件。 5. 导出到 PDF（图），为与外界分享我们的思维导图提供了另外一种选择。 6. 主题分类，帮助我们更便捷地查阅计划。 7. 增强的拼写检查功能，能很好地辅助我们的工作。它不仅告诉我们哪里拼写错误，也告诉我们正确的是什么。另外一个好消息是我们还可以把我们自己的词典文件（.dict)添加到 XMind 中去。 8.  XMind 拥有了新的在线升级系统。 已修正的bugs 1. 鱼骨图：如果把图的结构改成鱼骨图，在主题上添加概要，并把更多的主题添加到此概要中，点击打印, 版面布局就会混乱。重新打开这张图，版面布局仍然是乱的。 2. 提取风格：如果我们提取一个风格（命名为风格1），把 XMind 关了重新打开，再提取另一个风格（它会被自动命名为风格1），把它改名（比如：风格2）。现在如果重新打开 XMind ，风格2会丢失。 3. 右键菜单：只有在第一个工作簿的第一张图里，选中一个主题点击右键，你可以看到完整的右键菜单选项（包括图标，和结构） 4. 上传图：如果我们在一个图上添加一些特殊的风格和样式并上传到，http://share.xmind.net/，再把这张图下载下来打开，所有的风格和样式都会消失。 5. 导入 XMind 2008 文件，如果这张图有背景图片，这个背景图片在导入后会丢掉。 6. 导入 FreeMind 0.9：有的 FreeMind 0.9文件导入到 [...]]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/733/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让你的 CodeIgniter 自动配置基本 URL</title>
		<link>http://www.seven2.com.cn/archives/731/</link>
		<comments>http://www.seven2.com.cn/archives/731/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 15:54:10 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=731</guid>
		<description><![CDATA[在本地开发完 CodeIgniter 之后上传到服务器时，或你更换服务器时，您必须更改你的$config['base_url'],这样做法是极之不便的，不过这些不便都不会发生在我的身上，因为我想到解决这个问题的方法。解决的方法如下： 修改 config.php 文件中的 $config['base_url'] 的值 修改为如下： $config['base_url'] = "http://".$_SERVER['HTTP_HOST']; $config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME'])," ",$_SERVER['SCRIPT_NAME']); 如果你的空间有可能性使用 SSL 协议(https)就需要修改为如下： $config['base_url'] = 'http' . ((isset($_SERVER['HTTPS']) &#038;&#038; $_SERVER['HTTPS'] == 'on') ? 's' : '') . '://' . $_SERVER['HTTP_HOST'] . str_replace('//','/',dirname($_SERVER['PHP_SELF']).'/'); 如果在使用 CodeIgniter 开发过程中遇到的问题可以到 http://www.phpall.cn 去发帖求助，我在哪里等你啊。当然你也可以在本 Blog 留言，我也会尽力协助你解决你所遇到的问题。 文章首发于： http://www.seven2.com.cn/archives/731 转载时请注意文章出处]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/731/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>关于 xmind 无法完成安装的解决方法</title>
		<link>http://www.seven2.com.cn/archives/729/</link>
		<comments>http://www.seven2.com.cn/archives/729/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 15:53:14 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[开源软件]]></category>
		<category><![CDATA[XMind]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=729</guid>
		<description><![CDATA[今晚跟一位朋友安装 xmind ，因为他的机器没有安装Java JRE(JRE的下载地址： http://www.java.com/zh_CN/ download/index.jsp)，在安装 xmind 到最后哪部份就无法完成的，在查看安装的详细情况时看到自动下载 Java JRE 来安装，但 xmind 为什么还是无办完成，不知道什么原因我也不清楚，按正常来说是已经完成安装的。自己通过Ctrl+Alt+Del来强制关闭，关闭之后重启PC，打开 xmind 可以正常使用的。建议大家在安装 xmind 前安装Java JRE就可以避免这种情况的发生。 安装 xmind 之后，我习惯第一件事要做的就是把自动更新去掉，免得每次打开 xmind 都来检查更新，这样会影响 xmind 运行的速度。去掉 xmind 自动更新的方法：编辑&#8211;首选项&#8212;安装/更新&#8212;-自动更新，把“自动查找新更新并通知我”的钩去掉。 关于其他 xmind 的使用方法就是大家多画几个图就行啦，熟练生巧，到最后祝大家使用 xmind 快乐。]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/729/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CodeIgniter 发布 1.7.2 版</title>
		<link>http://www.seven2.com.cn/archives/695/</link>
		<comments>http://www.seven2.com.cn/archives/695/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 02:17:06 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=695</guid>
		<description><![CDATA[EllisLab 发布了 CodeIgniter 1.7.2。有什么新内容？主要的更改如下： 兼容 PHP 5.3.0。 新增购物车类库。 改善表单辅助函数。 在公共函数中新增 is_php()，让 PHP 版本比较更方便。 修改 show_error() 以便发送 HTTP 服务器响应码，并且所有内部错误提示都会发送合适的状态码。 修复了很多 BUG。 1.7.2 版已经在 subversion 中存在了很长一段时间了，并且已经于 7 月下旬兼容于 PHP 5.3.0，不过可以理解的是许多用户并没有使用那个开发中的版本。虽然我也希望能有时间为这个版本多增加一些“大改动”的项目，并把版本号变为 1.8，但时间不等人。我们的许多用户都在 Mac 上开发，但 OS X“雪豹”中的 PHP 是 5.3.0，所以与其让用户继续等待不如先推出这个稳定版&#8211;毕竟已经 7 个月没有更新了。虽然如此，也还是有一些惊喜和可喜的变化。敬请享用！ CodeIgniter 1.7.2 下载： http://codeigniter.com/downloads/ CodeIgniter 1.7.2 在线手册： http://codeigniter.com/user_guide/ 原文章： CodeIgniter v1.7.2 Released EllisLab is pleased to release [...]]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/695/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 敏捷开发框架 CodeIgniter</title>
		<link>http://www.seven2.com.cn/archives/683/</link>
		<comments>http://www.seven2.com.cn/archives/683/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 02:29:22 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=683</guid>
		<description><![CDATA[原书名：《CodeIgniter for Rapid PHP Application Development》 中文名：《PHP 敏捷开发框架 CodeIgniter &#8211; 快速 Web 应用开发详解》 作者： David Upton 著 CodeIgniter 中国 译 前言 本书详细讲解了 CI 的一些主要特性。本书并不包含 CI 的所有内容和全部细节。CI 有一本出色的在线《用户指南》，它详细讲解了大多数的内容。它可以与 CI 一起下载。 本书并不想重复《用户指南》中的内容。相反，本书试图让你轻松了解 CI 框架是如何工作的，那么，你可以先决定它是否对你有价值，然后再阅读本书。 在试图解释 CI 是如何工作时，本书的某些内容已经超出了《用户指南》的范围。（《用户指南》更注重实际应用。）这意味着在“实战训练”中有一些非常理论化的章节。我发现这有助于理解 CI 内部的运行机制；否则，当你遇到令人费解的错误消息时就不容易解决。 我尝试在展示 CI 代码段时使用一个“真实世界”的例子。我想展示的是，CI 可以用于开发一个正式的网站。目前，我手头上有几个正在运行的客户网站，我希望依照我指定的方式去对其进行检测控制以及测试，同时记录下程序操作行为，在我需要时我可以得到一份相关的报告。 本书中的范例无法将 CI 的功能一丝不漏的完全展示，但我想这些范例应当还是在一定程度上展现了 CI 在简化处理常用应用（以及一些非常用应用）上的能力。 本书系统地讲解了 CodeIgniter 的主要特性，并配合相应的代码范例进行了详尽的解释，使你能够由浅入深地掌握 CodeIgniter。 本书内容概述 第一章讲解了 CodeIgniter 能做什么？什么是“框架”？如何安装 CodeIgniter？还对开源商业模式进行了深层次讨论，并在结尾给出了 [...]]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/683/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter 1.7.1 中文手册</title>
		<link>http://www.seven2.com.cn/archives/682/</link>
		<comments>http://www.seven2.com.cn/archives/682/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 02:14:52 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=682</guid>
		<description><![CDATA[CodeIgniter 是什么？ CodeIgniter 是一个应用程序框架 CodeIgniter 是一个为用 PHP 编写网络应用程序的人员提供的工具包。它的目标是实现让你比从零开始编写代码更快速地开发项目，为此，CI 提供了一套丰富的类库来满足通常的任务需求，并且提供了一个简单的接口和逻辑结构来调用这些库。CodeIgniter 可以将需要完成的任务代码量最小化，这样你就可以把更多的精力放到项目的开发上了。 CodeIgniter 是免费的 CodeIgniter 是经过 Apache/BSD-style 开源许可授权的，只要你愿意就可以使用它。阅读 许可协议 可获得更多的信息。 CodeIgniter 在 PHP 4 上运行 CodeIgniter 的编写完全兼容 PHP 4。尽管 PHP 5 在面向对象处理方面更具优势，我们本该利用此优势来简化我们（在 PHP4 下的）实现创造性解决方案的(例如：多继承)工作，但是我们建立此框架时，PHP 5 并未被广泛使用，这意味着(如果用 PHP 5来写)我们将要放弃大部分的潜在用户。主流操作系统供应商比如 REDHAT 非常缓慢得转向对 PHP5 的支持，并且短期内他们不大可能会全面支持 PHP5。所以，我们认为用 PHP 5 来写 CodeIgniter 不合 PHP 社区的最大利益。 注解: CodeIgniter 能够在PHP5环境下运行。只是它没有使用PHP5独有的高级特征。 CodeIgniter 是轻量级的 真正的轻量级。我们的核心系统只需要一些非常小的库，这与那些需要更多资源的框架完全相反。额外的库文件只在请求的时候加载，依需求而定，所以核心系统是非常快而且轻的。 CodeIgniter [...]]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/682/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>XMind安装及中文手册下载（图文）</title>
		<link>http://www.seven2.com.cn/archives/579/</link>
		<comments>http://www.seven2.com.cn/archives/579/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 10:09:33 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[开源软件]]></category>
		<category><![CDATA[XMind]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=579</guid>
		<description><![CDATA[您想了解更多关于XMind的，敬请访问： http://www.seven2.com.cn/archives/514 XMind安装包选择及下载： XMind提供Mac,Linux,Windows平台的安装下载，每个安装包都包含英文，德文，日文，中文（简体） ，中文（繁体）语言，安装时自动选择与系统相对应的语言。 获得windows平台的XMind(日前最新版：3.0.3) 无需帐号，点击此链接即可下载： Mac、Linux平台的安装包下载请到官方下载： http://www.xmind.net/downloads/ 根据自己的操作系统选择相应的下载源 注意：下载前必需必须成为http://www.xmind.net的会员，成为XMind的会员的也有好处的， 第一时间获得XMind最新的资讯； 可以上传思维图到XMind官网站与他人分享自己的成果。 点击下载后就出现以下的画面： 如果是会员就输入用户名或Email 和密码，点击Sign In即系下载安装包，没有还不是XMind的会员请点击Get a free XMind ID注册会员，点击Get a free XMind ID就会出现的以下的画面： 点击Sign Up即系下载安装包，同时XMind会自动发封邮件到你所登记的Email进验证。 安装要求： 硬件： CPU 800Mhz或更高的。 256M内存或更高，建议512M或更大。 100MB的可用磁盘空间用于下载文件和安装包 。 互联网连接的某些功能（如上传）和XMind专业。 软件： Java（如果你本机没有安装Java，你在安装XMind也会自动下载Java安装，不过这个过程会比较慢些。） XMind 中文版手册下载： 请点击以下链接下载手册： xmind-3032e4b8ade69687e6898be5868c 文章首发于：http://www.seven2.com.cn]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/579/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>流程图和思维导图软件 XMind</title>
		<link>http://www.seven2.com.cn/archives/514/</link>
		<comments>http://www.seven2.com.cn/archives/514/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 12:38:04 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[开源软件]]></category>
		<category><![CDATA[XMind]]></category>
		<category><![CDATA[思维导图]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=514</guid>
		<description><![CDATA[免费版下载：http://www.xmind.net/downloads/ XMIND 是一款非常实用开源的心智图、思维导图（Mindmap）软件，应用全球最先进的Eclipse RCP 软件架构，全力打造易用、高效的可视化思维软件，强调软件的可扩展、跨平台、稳定性和性能，致力于使用先进的软件技术帮助用户真正意义上提高生产率，并且可以自己开发XMIND插件。 XMIND 是一款易用性很强的软件，通过XMIND可以随时开展头脑风暴，帮助人们快速理清思路。XMIND 绘制的思维导图、鱼骨图、二维图、树形图、逻辑图、组织结构图等以结构化的方式来展示具体的内容，人们在用XMIND绘制图形的时候，可以时刻保持头脑清晰，随时把握计划或任务的全局，它可以帮助人们在学习和工作用提高效率。 思维管理 XMIND 用关键字、线条、颜色、图标和发散结构帮助用户理清思路，在企业和教育领域都有很广泛的应用。在企业中它可以用来进行会议管理、项目管理、信息管理、计划和时间管理、企业决策分析等；在教育领域，它通常被用于教师备课、课程规划、头脑风暴等。 商务演示 XMIND 被认为是一种是新一代演示软件的模式，传统的演示软件一般一种线性的方式来表达事物，XMIND 用于演示，为人们提供了一种结构化的演示模式，在XMIND中进行演示，它始终为用户提供纵向深入和横向扩展两个维度的选择，这样用户在进行演示的时候，可以根据听众和现场的反馈及时的调整演示的内容，对于听众感兴趣的话题，可以纵向深入进行讲解和挖掘，对于听众不太关心的问题可以快速的跳转到下一个话题。 与办公软件协同工作 XMIND 的文件可以导出成Microsoft Word、Microsoft PowerPoint、PDF、图片（包括PNG、JPG、GIF、BMP 等）、RTF、TXT 等格式，可以方便的将XMIND绘制的成果与朋友和同事共享。 XMind 提供免费版和专业版。每个套件包含英语，德语，日语，中文（简体），中文（繁体）语言包。  XMind将选择语言，以适应您的操作系统的设置。改变你的操作系统的语言设置将改变XMind的。 文章首发于：http://www.seven2.com.cn 转载请注明出处]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/514/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>确保 PHP 应用程序的安全</title>
		<link>http://www.seven2.com.cn/archives/502/</link>
		<comments>http://www.seven2.com.cn/archives/502/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 12:42:16 +0000</pubDate>
		<dc:creator>七二</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[安全]]></category>

		<guid isPermaLink="false">http://www.seven2.com.cn/?p=502</guid>
		<description><![CDATA[不能违反的四条安全规则 开始之前 在本教程中，您将学习如何在自己的 PHP Web 应用程序中添加安全性。本教程假设您至少有一年编写 PHP Web 应用程序的经验，所以这里不涉及 PHP 语言的基本知识（约定或语法）。目标是使您了解应该如何保护自己构建的 Web 应用程序。 目标 本教程讲解如何防御最常见的安全威胁：SQL 注入、操纵 GET 和 POST 变量、缓冲区溢出攻击、跨站点脚本攻击、浏览器内的数据操纵和远程表单提交。 前提条件 本教程是为至少有一年编程经验的 PHP 开发人员编写的。您应该了解 PHP 的语法和约定；这里不解释这些内容。有使用其他语言（比如 Ruby、Python 和 Perl）的经验的开发人员也能够从本教程中受益，因为这里讨论的许多规则也适用于其他语言和环境。 安全性快速简介 Web 应用程序最重要的部分是什么？根据回答问题的人不同，对这个问题的答案可能是五花八门。业务人员需要可靠性和可伸缩性。IT 支持团队需要健壮的可维护的代码。最终用户需要漂亮的用户界面和执行任务时的高性能。但是，如果回答 “安全性”，那么每个人都会同意这对 Web 应用程序很重要。 但是，大多数讨论到此就打住了。尽管安全性在项目的检查表中，但是往往到了项目交付之前才开始考虑解决安全性问题。采用这种方式的 Web 应用程序项目的数量多得惊人。开发人员工作几个月，只在最后才添加安全特性，从而让 Web 应用程序能够向公众开放。 结果往往是一片混乱，甚至需要返工，因为代码已经经过检验、单元测试并集成为更大的框架，之后才在其中添加安全特性。添加安全性之后，主要组件可能会停止工作。安全性的集成使得原本顺畅（但不安全）的过程增加额外负担或步骤。 本教程提供一种将安全性集成到 PHP Web 应用程序中的好方法。它讨论几个一般性安全主题，然后深入讨论主要的安全漏洞以及如何堵住它们。在学完本教程之后，您会对安全性有更好的理解。 主题包括： SQL 注入攻击 操纵 GET 字符串 缓冲区溢出攻击 跨站点脚本攻击（XSS） 浏览器内的数据操纵 [...]]]></description>
		<wfw:commentRss>http://www.seven2.com.cn/archives/502/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

