<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></title> 
<link>http://www.bizeway.net/index.php</link> 
<description><![CDATA[网务通 - 网务公司发展之路]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></copyright>
<item>
<link>http://www.bizeway.net/read.php?</link>
<title><![CDATA[PHP修改HTTP header ]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[PHP]]></category>
<pubDate>Fri, 05 Sep 2008 15:26:16 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?</guid> 
<description>
<![CDATA[ 
	//用这个header指令来解决URL重写产生的404 header <br/>header('HTTP/1.1 200 OK'); <br/><br/>// 页面没找到 <br/>header('HTTP/1.1 404 Not Found'); <br/><br/>// 访问受限 <br/>header('HTTP/1.1 403 Forbidden'); <br/><br/>// The page moved permanently should be used for <br/>// all redrictions, because search engines know <br/>// what's going on and can easily update their urls. <br/>//页面被永久删除，可以告诉搜索引擎更新它们的urls <br/>//PS:第一次碰到这个指令，不知道能不能用来把自己的站点从搜索引擎中删除呢？ <br/>header('HTTP/1.1 301 Moved Permanently'); <br/><br/>// 服务器错误 <br/>header('HTTP/1.1 500 Internal Server Error'); <br/><br/>// 重定向到一个新的位置 <br/>header('Location: http://www.example.org/'); <br/><br/>// 延迟一段时间后重定向 <br/>header('Refresh: 10; url=http://www.example.org/'); <br/>print 'You will be redirected in 10 seconds'; <br/><br/>// 也可以使用HTML语法来实现延迟 <br/>// zip"'); <br/>header('Content-Transfer-Encoding: binary'); <br/>// 加载要下载的文件: <br/>readfile('example.zip'); <br/><br/>// 禁止缓存当前文档: <br/>header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate'); <br/>header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past <br/>header('Pragma: no-cache'); <br/><br/>// 设置内容类型: <br/>header('Content-Type: text/html; charset=iso-8859-1'); <br/>header('Content-Type: text/html; charset=utf-8'); <br/>header('Content-Type: text/plain'); // plain text file <br/>header('Content-Type: image/jpeg'); // JPG picture <br/>header('Content-Type: application/zip'); // ZIP file <br/>header('Content-Type: application/pdf'); // PDF file <br/>header('Content-Type: audio/mpeg'); // Audio MPEG (MP3,...) file <br/>header('Content-Type: application/x-shockwave-flash'); // Flash animation <br/><br/>// 显示登录对话框，可以用来进行HTTP认证 <br/>header('HTTP/1.1 401 Unauthorized'); <br/>header('WWW-Authenticate: Basic realm="Top Secret"'); <br/>print 'Text that will be displayed if the user hits cancel or '; <br/>print 'enters wrong login data'; <br/>Tags - <a href="tag.php?tag=php" rel="tag">php</a> , <a href="tag.php?tag=header" rel="tag">header</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?&amp;guid=0#topreply</link>
<title><![CDATA[[评论] PHP修改HTTP header ]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?&amp;guid=0#topreply</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>