<?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; BOM</title>
	<atom:link href="http://www.zhaipeng.cn/tag/bom/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zhaipeng.cn</link>
	<description>积极的工作,塌实的学习,安静的写博客...</description>
	<lastBuildDate>Thu, 10 Jun 2010 14:26:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>使用PHP清除文件的BOM</title>
		<link>http://www.zhaipeng.cn/2009/06/14/%e4%bd%bf%e7%94%a8php%e6%b8%85%e9%99%a4%e6%96%87%e4%bb%b6%e7%9a%84bom/</link>
		<comments>http://www.zhaipeng.cn/2009/06/14/%e4%bd%bf%e7%94%a8php%e6%b8%85%e9%99%a4%e6%96%87%e4%bb%b6%e7%9a%84bom/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 05:13:34 +0000</pubDate>
		<dc:creator>ZhaiPeng</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[BOM]]></category>
		<category><![CDATA[Dreamweaver]]></category>

		<guid isPermaLink="false">http://www.zhaipeng.cn/?p=268</guid>
		<description><![CDATA[偶尔美工设计师使用Dreamweaver时会加BOM, 这样写PHP程序时会因为BOM头输出产生错误: 如 header() , session_start() 时会提 : Header may not contain more than a single header, new line detected &#8230; 所以上网搜索了一下，知道BOM文件开头的三个字符是0xEF, 0xBB, 0xBF 所以可以使用下边的代码清除BOM.代码如下: &#160; set_time_limit&#40;0&#41;; //ignore_user_abort(true); ob_implicit_flush&#40;true&#41;; echo '&#60;div style=&#34;font-size:12px;&#34;&#62;'; &#160; findBom&#40;dirname&#40;__FILE__&#41; , true&#41;; &#160; echo &#40;'&#60;h3&#62;Complete!&#60;/h3&#62;'&#41;; echo '&#60;/div&#62;'; exit; function findBom&#40;$path = '.' , $autoRemove = false&#41;&#123; $dir = $path ; $result [...]]]></description>
		<wfw:commentRss>http://www.zhaipeng.cn/2009/06/14/%e4%bd%bf%e7%94%a8php%e6%b8%85%e9%99%a4%e6%96%87%e4%bb%b6%e7%9a%84bom/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
