<?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>HackGou In Lamp&#124;憨狗点灯 &#187; PHP</title>
	<atom:link href="http://hackgou.itbbq.com/category/php/feed" rel="self" type="application/rss+xml" />
	<link>http://hackgou.itbbq.com</link>
	<description>LAMP开放的是代码，是接口，是互操作性</description>
	<lastBuildDate>Thu, 15 Jul 2010 14:23:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Apache乱码问题</title>
		<link>http://hackgou.itbbq.com/apache%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98.html</link>
		<comments>http://hackgou.itbbq.com/apache%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98.html#comments</comments>
		<pubDate>Wed, 21 Nov 2007 16:09:01 +0000</pubDate>
		<dc:creator>HackGou</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/apache%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98.html</guid>
		<description><![CDATA[很多时候，浏览器并不按照指定的编码来显示页面。 导致乱码。其实这和http头中的设置有很大关系：
Content-Type: text/html; charset=utf-8
当http头中有这一行的时候，浏览器总是按照这个头指示的编码来显示页面内容，
而忽略Meta tag中的设置。如果Meta和Content-Type 的charset一致时，一切都是正常的，
而一旦不一样，那就会出现问题。
而apache本身是可以通过AddDefaultCarset XXX来来设置 http头中的默认字符编码，
同时当apache和php在一起的时候，还有php.ini的一个设置会影响这个http头的默认编码：
default_charset = &#8220;utf-8&#8243;
而这个default_charset 的设置会覆盖apache的AddDefaultCarset配置，
当然也可以在每个php里面手动调用
header(&#8220;content-type:text/html; charset=xxx&#8221;)
来覆盖default_charset 的值，这么看来一共有四个地方 会对php的执行结果产生影响： 优先级别从高到低：
php的header(&#8220;content-type:text/html; charset=xxx&#8221;)函数
php.ini里面的default_charset 设置
httpd.conf 中的AddDefaultCarset设置
最后才是html代码中的：META tag
其实最简单的办法是把php.ini中的default_charset和httpd.conf中的AddDefaultCarset置空。 通过Meta tag来指定编码，header只是临时性的改变编码的最后关口。
]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/apache%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>p  spell和recode居然会让php5挂掉？</title>
		<link>http://hackgou.itbbq.com/p-spell%e5%92%8crecode%e5%b1%85%e7%84%b6%e4%bc%9a%e8%ae%a9php5%e6%8c%82%e6%8e%89%ef%bc%9f.html</link>
		<comments>http://hackgou.itbbq.com/p-spell%e5%92%8crecode%e5%b1%85%e7%84%b6%e4%bc%9a%e8%ae%a9php5%e6%8c%82%e6%8e%89%ef%bc%9f.html#comments</comments>
		<pubDate>Sat, 20 Jan 2007 04:54:01 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/p-spell%e5%92%8crecode%e5%b1%85%e7%84%b6%e4%bc%9a%e8%ae%a9php5%e6%8c%82%e6%8e%89%ef%bc%9f.html</guid>
		<description><![CDATA[从port安装的php5和extension中，pspell和recode两个扩展居然会导致php 挂掉，
有些不可思意，也许是 这两个扩展需要额外的lib没有安装，引发经典的库依赖问题？？
;extension=pspell.so
;extension=recode.so
还好，这两个扩展根本用不到，注释之
不能从根本上解决问题，那让问题根本不会出现，未尝不是一个根本上解决问题的法子   :P
]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/p-spell%e5%92%8crecode%e5%b1%85%e7%84%b6%e4%bc%9a%e8%ae%a9php5%e6%8c%82%e6%8e%89%ef%bc%9f.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Seagull中的makeUrl解析</title>
		<link>http://hackgou.itbbq.com/seagull%e4%b8%ad%e7%9a%84makeurl%e8%a7%a3%e6%9e%90.html</link>
		<comments>http://hackgou.itbbq.com/seagull%e4%b8%ad%e7%9a%84makeurl%e8%a7%a3%e6%9e%90.html#comments</comments>
		<pubDate>Thu, 12 Oct 2006 17:39:01 +0000</pubDate>
		<dc:creator>HackGou</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Seagull]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/seagull%e4%b8%ad%e7%9a%84makeurl%e8%a7%a3%e6%9e%90/</guid>
		<description><![CDATA[makeUrl原型位于Output：
makeUrl($action = '', $mgr = '', $mod = '', $aList = array(), $params = '', $idx = 0)

makeUrl由Output调用别名函数
SGL_Url::makeLink&#160;SGL_Url::makeLink($action, $mgr, $mod, $aList, $params, $idx, $this)

实现.
 而SGL_Url::makeLink则是从$conf['site']['outputUrlHandler']的实例中调用
makeLink(tion, $mgr, $mod, $aList, $params, $idx, $output)完成真正的url生成。
默认情况下$conf['site']['outputUrlHandler']的值为SGL_UrlParser_SefStrategy。
它是从SGL_UrlParserStrategy中继承而来。解析makeLink即可解释默认的makeUrl所发生的动作，
当然也可以自己继承SGL_UrlParserStrategy，来实现自己独特风格的makeUrl函数。
makeLink($action, $mgr, $mod, $aList, $params, $idx) $action、$action, $mgr, $mod,从名字就可以看出来。 关键是后面$aList, $params, $idx三个参数。 makeLinnk首先将$params中的参数使用&#8217;&#124;&#124;&#8217;拆分成&#8217;参数名&#124;值&#8217;对的形式,比如#image_id&#124;imageId&#124;&#124;a&#124;2&#124;&#124;b&#124;[a,1,2,3-4,,4] 将拆分成 image_id&#124;iamgeId和 a&#124;2和 b&#124;[1,2,3-4,4] 两个&#8217;参数名&#124;值&#8217;对。
然后分别将这些值对使用&#8217;&#124;'拆成$qsParamName和$listKey循环带入$aList的每个元素进行如下检查:
if&#160;($aList不为空且$aList最后一个单元为数组
    或者$aList是数组且最后一个单元为对象
    或者$aList单元数目不为零。
    或者$aList等于0&#160;)
    {&#160;if( $aList[$idx][$listKey]存在且$listKey不为空){
             $qsParamValue = $aList[$idx][$listKey]
    [...]]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/seagull%e4%b8%ad%e7%9a%84makeurl%e8%a7%a3%e6%9e%90.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Port中得PHP5没有session？</title>
		<link>http://hackgou.itbbq.com/port%e4%b8%ad%e5%be%97php5%e6%b2%a1%e6%9c%89session%ef%bc%9f.html</link>
		<comments>http://hackgou.itbbq.com/port%e4%b8%ad%e5%be%97php5%e6%b2%a1%e6%9c%89session%ef%bc%9f.html#comments</comments>
		<pubDate>Fri, 08 Sep 2006 03:18:01 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[port]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/port%e4%b8%ad%e5%be%97php5%e6%b2%a1%e6%9c%89session%ef%bc%9f/</guid>
		<description><![CDATA[服务器上面只用python，便没有安装PHP。 前几天需要PHP了，于是打算从port构建PHP5。 但是出来得PHP5很多功能都没有（其实就是没有对应得extenssion） 比较奇怪得就是session，手册上面说默认是可以使用得。 但是从port构建出来得PHP5却无法使用session： Fatal error: Call to undefined function session_start ()
其原因就是port中得PHP默认是不支持session得，而且也不在php5-extenssion 中，而是在/www/php5-session。过去make&#038;&#038;make install就OK了！
]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/port%e4%b8%ad%e5%be%97php5%e6%b2%a1%e6%9c%89session%ef%bc%9f.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP中的多字节字符串处理</title>
		<link>http://hackgou.itbbq.com/php%e4%b8%ad%e7%9a%84%e5%a4%9a%e5%ad%97%e8%8a%82%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%a4%84%e7%90%86.html</link>
		<comments>http://hackgou.itbbq.com/php%e4%b8%ad%e7%9a%84%e5%a4%9a%e5%ad%97%e8%8a%82%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%a4%84%e7%90%86.html#comments</comments>
		<pubDate>Sun, 26 Feb 2006 05:33:02 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/2006_02_26_php%e4%b8%ad%e7%9a%84%e5%a4%9a%e5%ad%97%e8%8a%82%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%a4%84%e7%90%86/</guid>
		<description><![CDATA[PHP中处理单字节编码的字符串（ASCII-compatible）时，str*()系列函数就可以完全正常工作，但是在处理多多字节编码的字符串时，比如处理下面utf-8编码的中文字符串$str=&#8221;多字节字符串测试&#8221;;时，问题就出来了大大：


当然如果使用trim, split, splice,这些函数的结果就自然而然的会出现一些意想不到的结果。
当处理多字节（比如：中文）字符串的时候，PHP给我们提供了一组以mb_开头的trim, split,
splice的多字节版本Multibyte String Functions这样我们就可以很好的对多字节字符串进行处理了:

有意思的是mb_*系列函数中还包括了mb_ereg_*()函数，这听起来是个好事，但是实际上ereg_*()和preg_*()系列函数已经内置了对多字节的支持了：

使用preg_*() 也可以一样的工作：
]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/php%e4%b8%ad%e7%9a%84%e5%a4%9a%e5%ad%97%e8%8a%82%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%a4%84%e7%90%86.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>看了一篇关于PHP和JSP评测得报告</title>
		<link>http://hackgou.itbbq.com/%e7%9c%8b%e4%ba%86%e4%b8%80%e7%af%87%e5%85%b3%e4%ba%8ephp%e5%92%8cjsp%e8%af%84%e6%b5%8b%e5%be%97%e6%8a%a5%e5%91%8a.html</link>
		<comments>http://hackgou.itbbq.com/%e7%9c%8b%e4%ba%86%e4%b8%80%e7%af%87%e5%85%b3%e4%ba%8ephp%e5%92%8cjsp%e8%af%84%e6%b5%8b%e5%be%97%e6%8a%a5%e5%91%8a.html#comments</comments>
		<pubDate>Thu, 02 Jun 2005 10:25:44 +0000</pubDate>
		<dc:creator>HackGou</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/2005_06_02_%e7%9c%8b%e4%ba%86%e4%b8%80%e7%af%87%e5%85%b3%e4%ba%8ephp%e5%92%8cjsp%e8%af%84%e6%b5%8b%e5%be%97%e6%8a%a5%e5%91%8a/</guid>
		<description><![CDATA[ 
看了一篇关于PHP和JSP评测得报告。
http://www.chinaunix.net/jh/27/16002.html
倒是对报告的结果感到很大的惊奇！

简单的算术运算PHP比不过jsp。
而针对服务器特别重要的数据库处理倒是比jsp更胜一筹！
但是企业级的应用PHP还欠火候。而且PHP的扩展库（PEAR）也不是特别的丰富，（当然没法和CPAN相比）。而且使用的人也不多。个人觉得这基本上会较大的影响PHP的推广，但是jsp却不一样。
而且后台逻辑处理和前台的表现之间的衔接，倒是觉得jsp和PHP都不如Zope处理的好，jsp用bean来完成逻辑和表现的交互、而PHP则是运用模板（FastTemplate 或者 PHPLIB Template）来实现。而Python的面向对象的思想，基本上免除了这些顾虑。正是这个原因，才让我对Python和Zope感兴趣。
&#8212;&#8211; 
]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/%e7%9c%8b%e4%ba%86%e4%b8%80%e7%af%87%e5%85%b3%e4%ba%8ephp%e5%92%8cjsp%e8%af%84%e6%b5%8b%e5%be%97%e6%8a%a5%e5%91%8a.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql5出来了</title>
		<link>http://hackgou.itbbq.com/mysql5%e5%87%ba%e6%9d%a5%e4%ba%86.html</link>
		<comments>http://hackgou.itbbq.com/mysql5%e5%87%ba%e6%9d%a5%e4%ba%86.html#comments</comments>
		<pubDate>Mon, 04 Oct 2004 02:27:48 +0000</pubDate>
		<dc:creator>HackGou</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/2004_10_04_mysql5%e5%87%ba%e6%9d%a5%e4%ba%86/</guid>
		<description><![CDATA[前几天看见有人说Mysql5支持存储过程，今天到Mysql.com上看了看，果然啊。而且还不止这些呢,不过看完了这个觉得就存储过程还觉得比较使用，其他的感觉倒是一般。
The following features are planned for inclusion into MySQL 5.0. Some of the features such as stored procedures are complete and are included in MySQL 5.0 alpha, which is available now. Others such as cursors are only partially available. Expect these and other features to mature and be fully supported in upcoming releases.
Note that because [...]]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/mysql5%e5%87%ba%e6%9d%a5%e4%ba%86.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>大师毕竟是大师</title>
		<link>http://hackgou.itbbq.com/%e5%a4%a7%e5%b8%88%e6%af%95%e7%ab%9f%e6%98%af%e5%a4%a7%e5%b8%88.html</link>
		<comments>http://hackgou.itbbq.com/%e5%a4%a7%e5%b8%88%e6%af%95%e7%ab%9f%e6%98%af%e5%a4%a7%e5%b8%88.html#comments</comments>
		<pubDate>Wed, 04 Aug 2004 02:19:35 +0000</pubDate>
		<dc:creator>HackGou</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/2004_08_04_%e5%a4%a7%e5%b8%88%e6%af%95%e7%ab%9f%e6%98%af%e5%a4%a7%e5%b8%88/</guid>
		<description><![CDATA[ 
昨天看了一本Rasmus Lerdorf写的关于PHP的一本书，
感觉就是不一样哦。：P
大师就是大师，
里面关于Pear:DB、模板(Smarty)、结合Apache安装时的提供的更多安全设置等等的介绍，虽然短短数言，但是却然我豁然开朗。
再列举一些这方面的链接：
    IBM的Smarty介绍
    Smarty官方网站
&#8212;&#8211; 
]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/%e5%a4%a7%e5%b8%88%e6%af%95%e7%ab%9f%e6%98%af%e5%a4%a7%e5%b8%88.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用浏览器升级你的Pear</title>
		<link>http://hackgou.itbbq.com/%e4%bd%bf%e7%94%a8%e6%b5%8f%e8%a7%88%e5%99%a8%e5%8d%87%e7%ba%a7%e4%bd%a0%e7%9a%84pear.html</link>
		<comments>http://hackgou.itbbq.com/%e4%bd%bf%e7%94%a8%e6%b5%8f%e8%a7%88%e5%99%a8%e5%8d%87%e7%ba%a7%e4%bd%a0%e7%9a%84pear.html#comments</comments>
		<pubDate>Thu, 06 May 2004 15:33:43 +0000</pubDate>
		<dc:creator>HackGou</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.itbbq.com/_2004_05_06_%e4%bd%bf%e7%94%a8%e6%b5%8f%e8%a7%88%e5%99%a8%e5%8d%87%e7%ba%a7%e4%bd%a0%e7%9a%84pear/</guid>
		<description><![CDATA[ 
今天看了Pear，更新了不少，我得赶快更新一下我的本地包，怎么更新呢？一个一个下载、解压？
麻烦，这么麻烦的事情应该由电脑来做：
 

其实很简单，在pear目录下有个index.php，你只要用web服务器给pear目录映射一个虚拟目录，记得添加写权限，然后访问改目录下的index.php文件，剩下的就只是点击一下的事情了。
740)this.width=740&#8243; border=undefined&#62;
在升级现有包的时候，如果出现Adding package Archive_Tar to registry failed错误。
直接删除PEAR\.registry下的相应reg文件，重试就OK了。
至于其他的一些错误：
requires package `Crypt_CHAP&#8217;&#62;= 1.0.0
&#8216;mhash&#8217; PHP extension is not installed
File_SMBPasswd: Dependencies failed
PHP version &#62;= 5.0.0b4 is required
perl: Dependencies failed
解决的方法在错误信息里，基本上都给出来了。
&#8212;&#8211; 
]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/%e4%bd%bf%e7%94%a8%e6%b5%8f%e8%a7%88%e5%99%a8%e5%8d%87%e7%ba%a7%e4%bd%a0%e7%9a%84pear.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
