<?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>可可熊的窝 &#187; PHP</title>
	<atom:link href="http://cocobear.info/blog/category/my-programming/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://cocobear.info/blog</link>
	<description>K.I.S.S</description>
	<lastBuildDate>Sun, 11 Mar 2012 14:04:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>给草儿同学写了个查询系统</title>
		<link>http://cocobear.info/blog/2010/01/13/write-web-query-system/</link>
		<comments>http://cocobear.info/blog/2010/01/13/write-web-query-system/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 09:07:20 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[编程相关]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Js]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=775</guid>
		<description><![CDATA[主要实现查询、添加、修改、删除、导入功能;
可以对Excel文件导出的csv文件直接导入，使用ajax使操作简单化。

用到的技术关键词
PHP MySQL Ajax JavaScript Jquery Vim

共计一个文件600行代码]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2010/01/13/write-web-query-system/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>留言薄中的一个bug</title>
		<link>http://cocobear.info/blog/2008/01/13/%e7%95%99%e8%a8%80%e8%96%84%e4%b8%ad%e7%9a%84%e4%b8%80%e4%b8%aabug/</link>
		<comments>http://cocobear.info/blog/2008/01/13/%e7%95%99%e8%a8%80%e8%96%84%e4%b8%ad%e7%9a%84%e4%b8%80%e4%b8%aabug/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 02:39:58 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[编程相关]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/2008/01/13/%e7%95%99%e8%a8%80%e8%96%84%e4%b8%ad%e7%9a%84%e4%b8%80%e4%b8%aabug/</guid>
		<description><![CDATA[今天在看留言簿的留言中发现在站长回复这里的时间有点问题,看了看代码,原来是在admin.php中的time_diff这个变量被初始化为0了,本来应该使用的是全局变量$cfg['time_diff']的。修改一下：

- $time_diff = 0;
+ $time_diff = $cfg['[......]<p class='read-more'><a href='http://cocobear.info/blog/2008/01/13/%e7%95%99%e8%a8%80%e8%96%84%e4%b8%ad%e7%9a%84%e4%b8%80%e4%b8%aabug/'>阅读全文内容</a></p>]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/01/13/%e7%95%99%e8%a8%80%e8%96%84%e4%b8%ad%e7%9a%84%e4%b8%80%e4%b8%aabug/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>MG2更新</title>
		<link>http://cocobear.info/blog/2007/10/12/mg2%e6%9b%b4%e6%96%b0/</link>
		<comments>http://cocobear.info/blog/2007/10/12/mg2%e6%9b%b4%e6%96%b0/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 07:17:25 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[编程相关]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/2007/10/12/mg2%e6%9b%b4%e6%96%b0/</guid>
		<description><![CDATA[<ul>		
	<li>图片生成的缩略图改为一致的大小（150x150)；</li>

	<li>对评论的内容进行检查（原版本只对留言内容进行了检查，而没有对名字，邮箱进行过滤，因此会产生前面说过的漏洞）</li>


	<li>对单个图片的链接修改为指向下个图片（原版本为返回目录），这样更符合一般人的使用习惯；</li>
	<li>修改评论的名字，邮件过长的输入条；[......]</li></ul><p class='read-more'><a href='http://cocobear.info/blog/2007/10/12/mg2%e6%9b%b4%e6%96%b0/'>阅读全文内容</a></p>]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2007/10/12/mg2%e6%9b%b4%e6%96%b0/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>MG2 v0.5.1补丁</title>
		<link>http://cocobear.info/blog/2007/10/06/mg2-v051%e8%a1%a5%e4%b8%81/</link>
		<comments>http://cocobear.info/blog/2007/10/06/mg2-v051%e8%a1%a5%e4%b8%81/#comments</comments>
		<pubDate>Sat, 06 Oct 2007 14:30:25 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[编程相关]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/2007/10/06/mg2-v051%e8%a1%a5%e4%b8%81/</guid>
		<description><![CDATA[前两天给小组找相册程序时发现了<a href="http://www.minigal.dk/">MG2</a>这个相册，有一种久违了的感觉，这正是我喜欢的风格（无论是操作还是界面）。给小组弄了一个<a href="http://xiyoulinux.cn/album/">相册</a>，也想给俺弄一个，不过它默认的皮肤是白色的，不适合我的网站。在它的主页找到了黑色皮肤，可惜不能下载，google也没找到那个黑色皮肤的下载。

不过却google到了很多[......]<p class='read-more'><a href='http://cocobear.info/blog/2007/10/06/mg2-v051%e8%a1%a5%e4%b8%81/'>阅读全文内容</a></p>]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2007/10/06/mg2-v051%e8%a1%a5%e4%b8%81/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>终于忍不住更新了留言板</title>
		<link>http://cocobear.info/blog/2007/09/19/%e7%bb%88%e4%ba%8e%e5%bf%8d%e4%b8%8d%e4%bd%8f%e6%9b%b4%e6%96%b0%e4%ba%86%e7%95%99%e8%a8%80%e6%9d%bf/</link>
		<comments>http://cocobear.info/blog/2007/09/19/%e7%bb%88%e4%ba%8e%e5%bf%8d%e4%b8%8d%e4%bd%8f%e6%9b%b4%e6%96%b0%e4%ba%86%e7%95%99%e8%a8%80%e6%9d%bf/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 14:02:41 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[编程相关]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/2007/09/19/%e7%bb%88%e4%ba%8e%e5%bf%8d%e4%b8%8d%e4%bd%8f%e6%9b%b4%e6%96%b0%e4%ba%86%e7%95%99%e8%a8%80%e6%9d%bf/</guid>
		<description><![CDATA[垃圾留言太倡狂了，一天有N条垃圾留言，只能加了验证码，不过这个验证码是问答行式的，目前的验证码需要填入的是你留言时星期几的阿拉伯数字表示。同时顺便也修改了一下其它地方：
<ul>	<li>自动判断用户信息，产生超链接</li>	
<li>限制留言长度，1000字节</li>
	<li>增加防止垃圾留言功能。（请大家在留言时输入留言时星期几的阿拉[......]</li></ul><p class='read-more'><a href='http://cocobear.info/blog/2007/09/19/%e7%bb%88%e4%ba%8e%e5%bf%8d%e4%b8%8d%e4%bd%8f%e6%9b%b4%e6%96%b0%e4%ba%86%e7%95%99%e8%a8%80%e6%9d%bf/'>阅读全文内容</a></p>]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2007/09/19/%e7%bb%88%e4%ba%8e%e5%bf%8d%e4%b8%8d%e4%bd%8f%e6%9b%b4%e6%96%b0%e4%ba%86%e7%95%99%e8%a8%80%e6%9d%bf/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP留言板更新</title>
		<link>http://cocobear.info/blog/2007/08/31/php%e7%95%99%e8%a8%80%e6%9d%bf%e6%9b%b4%e6%96%b0/</link>
		<comments>http://cocobear.info/blog/2007/08/31/php%e7%95%99%e8%a8%80%e6%9d%bf%e6%9b%b4%e6%96%b0/#comments</comments>
		<pubDate>Fri, 31 Aug 2007 07:05:29 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[编程相关]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/2007/08/31/php%e7%95%99%e8%a8%80%e6%9d%bf%e6%9b%b4%e6%96%b0/</guid>
		<description><![CDATA[更新内容有:
<ul>	<li>过滤了一些HTML代码,如DIV TABLE META等,不过像A STRONG等这些代码还是可用的</li>	<li>增加了记忆留言者用户名和信息的功能,这样方便每次留言里输入自己的信息</li>
	<li>限制了留言的时间间隔,两次留言时间最少为30秒</li>
	<li>源代码中增加了头部的说明注释</li>	
	<li>修改了数据库中us[......]</li></ul><p class='read-more'><a href='http://cocobear.info/blog/2007/08/31/php%e7%95%99%e8%a8%80%e6%9d%bf%e6%9b%b4%e6%96%b0/'>阅读全文内容</a></p>]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2007/08/31/php%e7%95%99%e8%a8%80%e6%9d%bf%e6%9b%b4%e6%96%b0/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>留言板的问题</title>
		<link>http://cocobear.info/blog/2007/08/01/%e7%95%99%e8%a8%80%e6%9d%bf%e7%9a%84%e9%97%ae%e9%a2%98/</link>
		<comments>http://cocobear.info/blog/2007/08/01/%e7%95%99%e8%a8%80%e6%9d%bf%e7%9a%84%e9%97%ae%e9%a2%98/#comments</comments>
		<pubDate>Wed, 01 Aug 2007 12:36:48 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[编程相关]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/2007/08/01/%e7%95%99%e8%a8%80%e6%9d%bf%e7%9a%84%e9%97%ae%e9%a2%98/</guid>
		<description><![CDATA[一直在Linux下的代码,测试也只能用Opera和Firefox,没想到IE下边表格的分隔线竟然全都没有了,真郁闷啊,实在不想再去修改了,也真不知道还能怎么样,难道改代码的时候要把IE,Opera,Firefox都打开吗?真无耐,看来浏览器之间的差异真是每个Web程序人的心头病啊,想一想自己辛辛苦苦[......]<p class='read-more'><a href='http://cocobear.info/blog/2007/08/01/%e7%95%99%e8%a8%80%e6%9d%bf%e7%9a%84%e9%97%ae%e9%a2%98/'>阅读全文内容</a></p>]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2007/08/01/%e7%95%99%e8%a8%80%e6%9d%bf%e7%9a%84%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>历时5天的php+mysql留言板完成</title>
		<link>http://cocobear.info/blog/2007/07/31/%e5%8e%86%e6%97%b65%e5%a4%a9%e7%9a%84phpmysql%e7%95%99%e8%a8%80%e6%9d%bf%e5%ae%8c%e6%88%90/</link>
		<comments>http://cocobear.info/blog/2007/07/31/%e5%8e%86%e6%97%b65%e5%a4%a9%e7%9a%84phpmysql%e7%95%99%e8%a8%80%e6%9d%bf%e5%ae%8c%e6%88%90/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 15:53:23 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[编程相关]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/2007/07/31/%e5%8e%86%e6%97%b65%e5%a4%a9%e7%9a%84phpmysql%e7%95%99%e8%a8%80%e6%9d%bf%e5%ae%8c%e6%88%90/</guid>
		<description><![CDATA[先做个介绍，开发环境是apache2.2.4+php5.2.2+F7+vim7.0+opera9.1，代码统计：
[cocobear@cocobear guest]$ wc *.php config/*.php
   98   219  2947 admin.php
  202   548[......]<p class='read-more'><a href='http://cocobear.info/blog/2007/07/31/%e5%8e%86%e6%97%b65%e5%a4%a9%e7%9a%84phpmysql%e7%95%99%e8%a8%80%e6%9d%bf%e5%ae%8c%e6%88%90/'>阅读全文内容</a></p>]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2007/07/31/%e5%8e%86%e6%97%b65%e5%a4%a9%e7%9a%84phpmysql%e7%95%99%e8%a8%80%e6%9d%bf%e5%ae%8c%e6%88%90/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP版五子棋－人机对战版发布</title>
		<link>http://cocobear.info/blog/2007/07/02/php%e7%89%88%e4%ba%94%e5%ad%90%e6%a3%8b%ef%bc%8d%e4%ba%ba%e6%9c%ba%e5%af%b9%e6%88%98%e7%89%88%e5%8f%91%e5%b8%83/</link>
		<comments>http://cocobear.info/blog/2007/07/02/php%e7%89%88%e4%ba%94%e5%ad%90%e6%a3%8b%ef%bc%8d%e4%ba%ba%e6%9c%ba%e5%af%b9%e6%88%98%e7%89%88%e5%8f%91%e5%b8%83/#comments</comments>
		<pubDate>Sun, 01 Jul 2007 17:08:20 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[编程相关]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/2007/07/02/php%e7%89%88%e4%ba%94%e5%ad%90%e6%a3%8b%ef%bc%8d%e4%ba%ba%e6%9c%ba%e5%af%b9%e6%88%98%e7%89%88%e5%8f%91%e5%b8%83/</guid>
		<description><![CDATA[可以在下面的地址试玩：

<a href=http://cocobear.info/demo/phpfive/vs/>PHP版五子棋人机对战版

人工智能是很有限的，只是按照自己下棋时的想法做了个实现，也算不是上真正的人工智能，不过我对五子棋也不是很熟悉，有关的路数、着法不太了解，所以碰到稍懂一点五子棋的就变得很弱了，呵呵，差不多代表了我的五子棋水平－－很菜！

<a href="http://cocobear.info/src/html/vs.html">查看对战版代码[......]</a><p class='read-more'><a href='http://cocobear.info/blog/2007/07/02/php%e7%89%88%e4%ba%94%e5%ad%90%e6%a3%8b%ef%bc%8d%e4%ba%ba%e6%9c%ba%e5%af%b9%e6%88%98%e7%89%88%e5%8f%91%e5%b8%83/'>阅读全文内容</a></p>]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2007/07/02/php%e7%89%88%e4%ba%94%e5%ad%90%e6%a3%8b%ef%bc%8d%e4%ba%ba%e6%9c%ba%e5%af%b9%e6%88%98%e7%89%88%e5%8f%91%e5%b8%83/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PHP调试方式</title>
		<link>http://cocobear.info/blog/2007/07/01/php%e8%b0%83%e8%af%95%e6%96%b9%e5%bc%8f/</link>
		<comments>http://cocobear.info/blog/2007/07/01/php%e8%b0%83%e8%af%95%e6%96%b9%e5%bc%8f/#comments</comments>
		<pubDate>Sun, 01 Jul 2007 12:17:46 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[编程相关]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/2007/07/01/php%e8%b0%83%e8%af%95%e6%96%b9%e5%bc%8f/</guid>
		<description><![CDATA[这两天在写以前那个PHP五子棋的人工智能部分，由于PHP是解释执行的语言调试起来不太方便，而且在默认的情况下出错信息是不提示的，这个大概是为了方便用户的体验，毕竟一个真正运作的网站要是出现一些PHP错误信息是不安全，而且不美观。如果是在写代码的时候就得把错误警告打开，可以有以下两种方式：

<ul><li>修改[......]</li></ul><p class='read-more'><a href='http://cocobear.info/blog/2007/07/01/php%e8%b0%83%e8%af%95%e6%96%b9%e5%bc%8f/'>阅读全文内容</a></p>]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2007/07/01/php%e8%b0%83%e8%af%95%e6%96%b9%e5%bc%8f/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

