<?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>z&#039;Log &#187; include</title>
	<atom:link href="http://rndz.org/tag/include/feed/" rel="self" type="application/rss+xml" />
	<link>http://rndz.org</link>
	<description>低心跳、高环保、成就次世代好宅男</description>
	<lastBuildDate>Sun, 15 Jan 2012 02:52:55 +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>在 php 中包含其它文件</title>
		<link>http://rndz.org/%e5%9c%a8-php-%e4%b8%ad%e5%8c%85%e5%90%ab%e5%85%b6%e5%ae%83%e6%96%87%e4%bb%b6/</link>
		<comments>http://rndz.org/%e5%9c%a8-php-%e4%b8%ad%e5%8c%85%e5%90%ab%e5%85%b6%e5%ae%83%e6%96%87%e4%bb%b6/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 14:38:09 +0000</pubDate>
		<dc:creator>z</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[readfile]]></category>
		<category><![CDATA[require]]></category>
		<category><![CDATA[virtual]]></category>

		<guid isPermaLink="false">http://rndz.org/?p=15</guid>
		<description><![CDATA[前几天把《subversion 权威指南》加到在线手册里，没有建树形目录，只是直接放上去。结果过两天把这书的地址发给别人时就出问题了。因为页面内容里是兼容xml的格式，第一行如下：
&#60;?xml version=”1.0&#8243; encoding=”utf-8&#8243; standalone=”no”?&#62;
为了方便处理内容。服务器端不是直接返回内容 ，而是由404页面处理。不需要处理的页面直接使用 include 包含进来。php 遇到上面的语句就识别为 php 程序的内容，出错了。
查了 php 手册，类似功能的函数还有 virtual/require/readfile。既然是类似，那还是有差别的：
<span class="readmore"><a href="http://rndz.org/%e5%9c%a8-php-%e4%b8%ad%e5%8c%85%e5%90%ab%e5%85%b6%e5%ae%83%e6%96%87%e4%bb%b6/" title="在 php 中包含其它文件" target="_blank">阅读全文——共544字</a></span>]]></description>
		<wfw:commentRss>http://rndz.org/%e5%9c%a8-php-%e4%b8%ad%e5%8c%85%e5%90%ab%e5%85%b6%e5%ae%83%e6%96%87%e4%bb%b6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

