<?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>php个人工作经验以及生活体会博客</title>
	<atom:link href="http://www.wodeblog.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wodeblog.com</link>
	<description>php工作,生活</description>
	<lastBuildDate>Mon, 20 Feb 2012 04:34:28 +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>LBcms告一段落</title>
		<link>http://www.wodeblog.com/archives/263</link>
		<comments>http://www.wodeblog.com/archives/263#comments</comments>
		<pubDate>Sun, 19 Feb 2012 11:18:15 +0000</pubDate>
		<dc:creator>yangzhiyong</dc:creator>
				<category><![CDATA[MyLife]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[thinkphp]]></category>
		<category><![CDATA[热点中国]]></category>

		<guid isPermaLink="false">http://www.wodeblog.com/?p=263</guid>
		<description><![CDATA[利用业余时间使用thinkphp做了一款cms：【热点中国】，现在终于实现了其基本功能，算是告一段落了。 以后要做的就是在推销网站时根据需要增加相应的功能 热点中国 前台界面： 后台界面]]></description>
		<wfw:commentRss>http://www.wodeblog.com/archives/263/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>减少MySQL的Sleep进程有效方法</title>
		<link>http://www.wodeblog.com/archives/261</link>
		<comments>http://www.wodeblog.com/archives/261#comments</comments>
		<pubDate>Fri, 10 Feb 2012 13:48:24 +0000</pubDate>
		<dc:creator>yangzhiyong</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Sleep]]></category>

		<guid isPermaLink="false">http://www.wodeblog.com/?p=261</guid>
		<description><![CDATA[减少MySQL的Sleep进程有效方法 Post by vohot. Filed under PHP &#038; MySQL. 经常遇到很多朋友问到，他的MySQL中有很多Sleep进程，严重占用MySQL的资源，现在分析一下出现这种现象的原因和解决办法： 1，通常来说，MySQL出现大量Sleep进程是因为采用的PHP的MySQL长链接数据库方式，即使用了mysql_pconnect来打开链接数据库，解决办法就是使用“短”链接，即mysql_connect函数。 2，在使用mysql_connect短链接方式打开数据库，每个页面在打开数据库后，执行SQL完成，当页面脚本结束的时候，这个MySQL连接会自动关闭并且释放内存。但仍然出现大量Sleep进程，可以看看网站是否存在以下几个方面的问题。 A，硬盘上存在大量的静态文件，或者WEB服务器负荷太重，在处理HTTP请求响应变得太慢，这样也有可能导致出现大量Sleep进程，解决方法适当调整WEB服务参数和文件，一味的静态或者缓存化网页内容并不是灵丹妙药。 B，在网页脚本中，有些计算和应用可能非常耗时，比如在0秒的时候打开数据库执行完一段SQL代码后，网页脚本随即花了20秒钟进行一段复杂的运算，或者是require了一个庞大的PHP文件（比如含有几千个违规关键字的过滤函数），哪么这个时候在MySQL后台看到的进程中，这个20秒的过程MySQL并没有做任何事情了，一直处于Sleep状态，直到这个页面执行完毕或者达到wait_timeout值（被强行关闭），优化网页脚本，尽量让程序快速运行，或者在执行这段耗时的运行过程中，执行mysql_close把当前MySQL链接强行关闭。 C，在采集站中，MySQL中大量的Sleep进程这类现象尤其明显（比如很多网友问道DeDeCMS的MySQL中出现大量Sleep），因为大部的采集器页面在运行过程中，事先打开了一个MySQL链接（可能是为了验证用户权限等），然后开始使用file_get_contents之类的操作去获取一个远程的网页内容，如果这个远程的站点访问速度太慢，比如花了10秒时间才把网页取回，哪么当前采集脚本程序就一直阻塞在这里，并且MySQL啥事也没干，一直处于Sleep状态。解决方法同上，在发出file_get_contents采集远程网页的时候，使用mysql_close强行关闭MySQL的连接，等采集完成在适当需要的时候再重新mysql_connect即可。 总的说来，MySQL是一个非常高效快速的数据库，要让他发挥到最大的性能，同时也不要过量的去掘取他的优势所在，适当的分表（超过10G的表，在打开和关闭以前更新的时候效率明显下降很多），尽可能的优化SQL都可以做到事半功倍的。]]></description>
		<wfw:commentRss>http://www.wodeblog.com/archives/261/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>dede 调用当前文章url</title>
		<link>http://www.wodeblog.com/archives/255</link>
		<comments>http://www.wodeblog.com/archives/255#comments</comments>
		<pubDate>Mon, 06 Feb 2012 01:43:50 +0000</pubDate>
		<dc:creator>yangzhiyong</dc:creator>
				<category><![CDATA[dede]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.wodeblog.com/?p=255</guid>
		<description><![CDATA[在dede里面调用当前文章的url稍作二次开发就可以了，不用像网上说那样添加什么js的。 过程如下： 1，首先在（”/include/common.func.php”）文件里添加一个函数： 123456789101112131415161718//在文章页面显示当前url function thisUrl&#40;$id&#41; &#123; &#160; &#160; $dsql = new DedeSql&#40;false&#41;; &#160; &#160; $row &#160;= $dsql-&#62;GetOne&#40;&#34;SELECT * FROM `#@__archives` WHERE `id` = {$id} ORDER BY `id` DESC &#160;LIMIT 0, 1&#34;&#41;; &#160; &#160; $row2 = $dsql-&#62;GetOne&#40;&#34;SELECT * FROM `#@__arctype` &#8230;<p class="read-more"><a href="http://www.wodeblog.com/archives/255">继续阅读 &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.wodeblog.com/archives/255/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dede在列表页面添加本栏目最新的文章</title>
		<link>http://www.wodeblog.com/archives/253</link>
		<comments>http://www.wodeblog.com/archives/253#comments</comments>
		<pubDate>Fri, 03 Feb 2012 02:36:15 +0000</pubDate>
		<dc:creator>yangzhiyong</dc:creator>
				<category><![CDATA[dede]]></category>
		<category><![CDATA[本栏目最新文章]]></category>

		<guid isPermaLink="false">http://www.wodeblog.com/?p=253</guid>
		<description><![CDATA[今天www.58w.cn要做新的模板，特殊之处在于在列表页面和文章页面使用同一套模板，但是列表页面调用的是本栏目最新的一片文章。 具体做法： 1，在include/common.func.php文件中添加函数 12345678//在列表页下显示最新文章 function getlmactile&#40;$actileid,$key='body'&#41;&#123; &#160; &#160; $dsql = new DedeSql&#40;false&#41;; &#160; &#160; $row = $dsql-&#62;GetOne&#40;&#34;SELECT * FROM `#@__addonarticle` WHERE `typeid` = {$actileid} ORDER BY `aid` DESC &#160;LIMIT 0, 1&#34;&#41;; &#160; &#160; $row2 = $dsql-&#62;GetOne&#40;&#34;SELECT * FROM `#@__archives` WHERE &#8230;<p class="read-more"><a href="http://www.wodeblog.com/archives/253">继续阅读 &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.wodeblog.com/archives/253/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>游戏任务</title>
		<link>http://www.wodeblog.com/archives/246</link>
		<comments>http://www.wodeblog.com/archives/246#comments</comments>
		<pubDate>Wed, 01 Feb 2012 08:52:00 +0000</pubDate>
		<dc:creator>yangzhiyong</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[phpwind]]></category>
		<category><![CDATA[phpwind 任务]]></category>
		<category><![CDATA[游戏任务]]></category>

		<guid isPermaLink="false">http://www.wodeblog.com/?p=246</guid>
		<description><![CDATA[游戏任务要重新做了.. 任务流程： 用户申请完任务，去游戏里完成任务，当用户在牌友会里打开申请中的任务（/jobcenter.php?action=applied），牌友会到游戏里验证是否完成任务进行相关操作 开发过程： 一.在lib/job/job/config.job.php里面添加如下数据 1.var $_chess = “chess”; 2.函数getJobType中添加$data[$this->_chess] = $this->chess(); 3.函数jobs中添加$this->_chess => “棋牌游戏类”, 4.condition函数中添加 case &#8216;doPlayErbagang&#8217;: return $this->finish_doPlayErbagang($factor); break; 5.添加函数 function finish_doPlayErbagang($factor){ return &#8216;在PK28游戏中完成&#8217;.$factor['num'].&#8217;局二八杠游戏即可&#8217;; } /* * tl棋牌游戏类 */ function chess($k = null){ $data = array( &#8216;doPlayErbagang&#8217; =>&#8217;二八杠&#8217;, &#8230;<p class="read-more"><a href="http://www.wodeblog.com/archives/246">继续阅读 &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.wodeblog.com/archives/246/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP递归接收不到返回值，语言貌似有缺陷</title>
		<link>http://www.wodeblog.com/archives/236</link>
		<comments>http://www.wodeblog.com/archives/236#comments</comments>
		<pubDate>Tue, 31 Jan 2012 14:09:13 +0000</pubDate>
		<dc:creator>yangzhiyong</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php缺陷]]></category>
		<category><![CDATA[递归]]></category>

		<guid isPermaLink="false">http://www.wodeblog.com/?p=236</guid>
		<description><![CDATA[今天写了一段递归函数怎么也得到返回的值，以为是自己的写法有错误，在反复测试，不断改变方法后几乎崩溃，后来在网上查了资料后说是php的缺陷所致，在递归的时候增加一个return就可以解决问题，汗，PHP让我失望了。 代码： 12345678910111213141516171819202122$menudata=Array &#40; &#160; &#160; '0' =&#62; Array&#40;'id' =&#62; 15,'fid' =&#62; 1&#41;, &#160; &#160; '1' =&#62; Array&#40;'id' =&#62; 13,'fid' =&#62; 1&#41;, &#160; &#160; '2' =&#62; Array&#40;'id' =&#62; 14,'fid' =&#62; 1&#41;, &#160; &#160; '3' =&#62; Array&#40;'id' =&#62; 2,'fid' =&#62; 0&#41;, &#8230;<p class="read-more"><a href="http://www.wodeblog.com/archives/236">继续阅读 &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.wodeblog.com/archives/236/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse快捷键大全</title>
		<link>http://www.wodeblog.com/archives/233</link>
		<comments>http://www.wodeblog.com/archives/233#comments</comments>
		<pubDate>Tue, 31 Jan 2012 02:22:13 +0000</pubDate>
		<dc:creator>yangzhiyong</dc:creator>
				<category><![CDATA[editor]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[快捷键]]></category>

		<guid isPermaLink="false">http://www.wodeblog.com/?p=233</guid>
		<description><![CDATA[最近喜欢上eclipse编辑器，在这里转载一篇关于eclipse的快捷键介绍，写的还不错： Ctrl+1 快速修复(最经典的快捷键,就不用多说了) Ctrl+D: 删除当前行 Ctrl+Alt+↓ 复制当前行到下一行(复制增加) Ctrl+Alt+↑ 复制当前行到上一行(复制增加) Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了) Alt+↑ 当前行和上面一行交互位置(同上) Alt+← 前一个编辑的页面 Alt+→ 下一个编辑的页面(当然是针对上面那条来说了) Alt+Enter 显示当前选择资源(工程,or 文件 or文件)的属性 Shift+Enter 在当前行的下一行插入空行(这时鼠标可以在当前行的任一位置,不一定是最后) Shift+Ctrl+Enter 在当前行插入空行(原理同上条) Ctrl+Q 定位到最后编辑的地方 Ctrl+L 定位在某行 (对于程序超过100的人就有福音了) Ctrl+M 最大化当前的Edit或View (再按则反之) Ctrl+/ 注释当前行,再按则取消注释 Ctrl+O 快速显示 OutLine Ctrl+T 快速显示当前类的继承结构 &#8230;<p class="read-more"><a href="http://www.wodeblog.com/archives/233">继续阅读 &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.wodeblog.com/archives/233/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>未结束的字符串常量</title>
		<link>http://www.wodeblog.com/archives/229</link>
		<comments>http://www.wodeblog.com/archives/229#comments</comments>
		<pubDate>Mon, 30 Jan 2012 06:08:56 +0000</pubDate>
		<dc:creator>yangzhiyong</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JAVASCRIPT]]></category>

		<guid isPermaLink="false">http://www.wodeblog.com/?p=229</guid>
		<description><![CDATA[今天在做JAVASCRIPT的时候,发现老是出现”未结束的字符串常量”. 网上有很多类似问题的解决方案，找到了一篇文章并解决了自己的问题，在这里转载一下： 1.JAVASCRIPT引用时,使用的字符语言不一致. 比如:‘.xxx.js文件内部使用的是GB2312的格式,外面调用使用的是UTF-8,所以文件内部部分特殊字符因为格式不一致,出现乱码,造成此原因. 2.JAVASCRIPT输出HTML字符时,前后标记不匹配. 这种比较常见,往往在输出字符串时,出现单引号(’)或双引号(”)不配对,或者是在document.write()的时候,没有正确输出单引号(’)或双引号(”) 3.参数内出现HTML标记语言或包含换行符 我今天所遇到的是这种情况.因为我所得到的数据以参数形式传给一函数,结果该数据里包含换行符,造成了此错误. 如:一般测试时只使用单行的数据,是正常的,未出现这个错误,. 当测试时使用多行数据,并使用回车链换行,就出行了此错误.因为里面包含了换行符 对于第3种情况,我的解决方法是:不直接将该数据以参数形式传递,而是先将其赋值在一个隐藏的文本内,需要调用的函数里只需读取该文本里的内容即可. 上面是转载的，我今天把js代码和html代码分开后就遇到了未结束的字符串常量的错误，我就把js在dreamweaver中打开 导航栏上的修改&#8211;>页面属性&#8211;>文档编码 设置成和html文件一样的编码方式。问题就解决了]]></description>
		<wfw:commentRss>http://www.wodeblog.com/archives/229/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Apache下运行.net</title>
		<link>http://www.wodeblog.com/archives/226</link>
		<comments>http://www.wodeblog.com/archives/226#comments</comments>
		<pubDate>Fri, 27 Jan 2012 02:43:16 +0000</pubDate>
		<dc:creator>yangzhiyong</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://www.wodeblog.com/?p=226</guid>
		<description><![CDATA[看到了一篇介绍如何在Apache下运行.net的文章，在这里转载一下： 首先，必须要有Windows环境和.NET Framework的支持。此外还建议安装.NET开发工具如.NET Framework SDK或者VisualStudio.NET。需要注意的是Windows的版本应为2000、2003和XP。Win9X系列不能安装.NET Framework。然后需要安装Apache。应该使用Win32平台的Apache，版本2.0以上。推荐使用2.0.51版本。下载地址：http://apache.freelamp.com/httpd/binaries/win32/apache_2.0.52-win32-x86-no_ssl.msi具体的安装过程请参阅其他文章，本文不再赘述。 下面要下载并安装Apache环境下的ASP.NET模块。下载地址：http://www.apache.org/dist/httpd/mod_aspdotnet/mod_aspdotnet-2.0.0.msi下载完成后双击打开，一路Next即可安装完成。 为了便于管理，我们在htdocs目录下新建一个active目录，专门存放.aspx文件。现在需要对httpd.conf文件作一定配置，在文件末尾添加： #asp.net LoadModule aspdotnet_module “modules/mod_aspdotnet.so” AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj \ licx rem resources resx soap vb vbproj vsdisco webinfo # Mount the ASP.NET example application AspNetMount &#8230;<p class="read-more"><a href="http://www.wodeblog.com/archives/226">继续阅读 &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.wodeblog.com/archives/226/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>您的Cookie没有开启,不能登录成功&#8211;编码作的祟</title>
		<link>http://www.wodeblog.com/archives/224</link>
		<comments>http://www.wodeblog.com/archives/224#comments</comments>
		<pubDate>Thu, 19 Jan 2012 06:19:09 +0000</pubDate>
		<dc:creator>yangzhiyong</dc:creator>
				<category><![CDATA[ecms]]></category>
		<category><![CDATA[Cookie]]></category>

		<guid isPermaLink="false">http://www.wodeblog.com/?p=224</guid>
		<description><![CDATA[今天一同事在操作ecms时候了，出现了不能登录后台，并出现这样的提示错误： 123456Warning: Cannot modify header information - headers already sent by (output started at E:\wwwroot\com\i.com-163.com\e\class\config.php:1) in E:\wwwroot\com\i.com-163.com\e\class\connect.php on line 149 信息提示 您的Cookie没有开启，不能登录成功 如果您的浏览器没有自动跳转，请点击这里 让我给他解决，我首先查了一些资料，有的说是header()之前有输出造成的，后来看到百度知道上有位仁兄也遇到了这样的问题，有人回答说是config文件用txt文件修改后，编码给整错了，不过那仁兄说这个不能解决他的问题，但是我问了同事是不是用txt修改过config文件，他很从容的回答，是的。于是修改e/class下的config文件编码后，一个令人厌恶的问题解决了。]]></description>
		<wfw:commentRss>http://www.wodeblog.com/archives/224/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

