<?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://www.niuhh.com/archives/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.niuhh.com</link>
	<description>探索发掘IT网络，评论分享WEB精彩!</description>
	<lastBuildDate>Thu, 15 Jul 2010 02:09:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>解决Warning: Cannot modify header information &#8211; headers already sent by &#8230;&#8230;</title>
		<link>http://www.niuhh.com/archives/138.html</link>
		<comments>http://www.niuhh.com/archives/138.html#comments</comments>
		<pubDate>Thu, 15 Apr 2010 12:58:51 +0000</pubDate>
		<dc:creator>NiuHH</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[挖掘经验]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Warning]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[解决]]></category>

		<guid isPermaLink="false">http://www.niuhh.com/?p=138</guid>
		<description><![CDATA[
前段时间在搞论坛,改模板时遇到过出现&#8221;Warning: Cannot modify header information &#8211; headers already sent by &#8230;&#8230;&#8221;这样的问题.也是很让人不解.PHP还真是奇妙.不过最终还是挖掘到了解决的办法.还是中英文对照,现原文搬过来学习了.
If you got this message: &#8220;Warning: Cannot modify header information &#8211; headers already sent by &#8230;.&#8221;
如果在执行php程序时看到这条警告:&#8221;Warning: Cannot modify header information &#8211; headers already sent by &#8230;.&#8221;
Few notes based on the following user posts:
有以下几种解决方法:
1. Blank lines (空白行):
Make sure no blank line after &#60;?php &#8230; ?&#62; of [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-139" href="http://www.niuhh.com/archives/138.html/php"><img class="alignnone size-medium wp-image-139" title="php" src="http://www.niuhh.com/wp-content/uploads/2010/04/php-300x150.jpg" alt="" width="300" height="150" /></a></p>
<p>前段时间在搞论坛,改模板时遇到过出现&#8221;<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/warning" title="查看 Warning 的全部文章" target="_blank">Warning</a></span>: Cannot modify header information &#8211; headers already sent by &#8230;&#8230;&#8221;这样的问题.也是很让人不解.<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/php" title="查看 PHP 的全部文章" target="_blank">PHP</a></span>还真是奇妙.不过最终还是挖掘到了<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e8%a7%a3%e5%86%b3" title="查看 解决 的全部文章" target="_blank">解决</a></span>的办法.还是中英文对照,现原文搬过来学习了.<span id="more-138"></span></p>
<p>If you got this message: &#8220;Warning: Cannot modify header information &#8211; headers already sent by &#8230;.&#8221;<br />
如果在执行php程序时看到这条警告:&#8221;Warning: Cannot modify header information &#8211; headers already sent by &#8230;.&#8221;</p>
<p>Few notes based on the following user posts:<br />
有以下几种<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e8%a7%a3%e5%86%b3" title="查看 解决 的全部文章" target="_blank">解决</a></span>方法:</p>
<p>1. Blank lines (空白行):<br />
Make sure no blank line after &lt;?php &#8230; ?&gt; of the calling php script.<br />
检查有&lt;?php &#8230; ?&gt; 后面没有空白行，特别是include或者require的文件。不少问题是这些空白行导致的。</p>
<p>2. Use exit statement (用<a href="http://www.niuhh.com" target="_self">exit</a>来解决):<br />
Use exit after header statement seems to help some people<br />
<span style="color: #ff0000;">在header后加上exit();<br />
header (&#8220;Location: xxx&#8221;);<br />
exit();</span></p>
<p><span style="color: #ff9900;">3.</span> <span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/php" title="查看 PHP 的全部文章" target="_blank">PHP</a></span> has this annoying problem, if your HTML goes before any PHP code or any header modification before redirecting to certain page, it&#8217;ll said &#8220;Warning: Cannot modify header information &#8211; headers already sent by &#8230;.&#8221; Basically anytime you output to browser, the header is set and cannot be modified.   So two ways to get around the problem:</p>
<p>3a. Use Javascript (用Javascript来解决):<br />
&lt;? echo &#8220;&lt;script&gt; self.location(\&#8221;file.php\&#8221;);&lt;/script&gt;&#8221;; ?&gt;<br />
Since it&#8217;s a script, it won&#8217;t modify the header until execution of Javascript.<br />
可以用Javascript来代替header。但是上面的这段<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e4%bb%a3%e7%a0%81" title="查看 代码 的全部文章" target="_blank">代码</a></span>我没有执行成功&#8230; 另外需要注意，采用这种方法需要浏览器支持Javascript.</p>
<p>3b. Use output buffering (用输出缓存来解决):<br />
<span style="color: #ff0000;">&lt;?php ob_start(); ?&gt;</span><br />
&#8230; HTML codes &#8230;<br />
&lt;?php<br />
&#8230; PHP codes &#8230;<br />
header (&#8220;Location: &#8230;.&#8221;);<br />
<span style="color: #ff0000;">ob_end_flush();</span><br />
?&gt;<br />
This will save the output buffer on server and not output to browser yet, which means you can modify the header all you want until the ob_end_flush() statement.   This method is cleaner than the Javascript since Javascript method assumes the browser has Javascript turn on.   However, there are overhead to store output buffer on server before output, but with modern hardware I would imagine it won&#8217;t be that big of deal.   Javascript solution would be better if you know for sure your user has Javascript turn on on their browser.</p>
<p>就像上面的代码那样，这种方法在生成页面的时候缓存，这样就允许在输出head之后再输出header了。本站的许愿板就是采用这种方法解决的header问题。</p>
<div><span style="color: #0000ff;">在后台管理或者有时候在论坛，点击一个页面，页顶会出现<br />
Warning: Cannot modify header information &#8211; headers already sent by&#8230;.<br />
这类语句，造成这个原因是因为setcookie语句的问题。</p>
<p>cookie本身在使用上有一些限制，例如：<br />
1.呼叫setcookie的敘述必須放在&lt;html&gt;標籤之前<br />
2.呼叫setcookie之前，不可使用echo<br />
3.直到網頁被重新載入後，cookie才會在程式中出現<br />
4.setcookie函數必須在任何資料輸出至瀏覽器前，就先送出<br />
5.……<br />
基於上面這些限制，所以執行setcookie()函數時，常會碰到&#8221;Undefined index&#8221;、&#8221;Cannot modify header information &#8211; headers already sent by&#8221;…等問題，解決&#8221;Cannot modify header information &#8211; headers already sent by&#8221;這個錯誤的方法是在產生cookie前，先延緩資料輸出至瀏覽器，因此，<span style="color: #ff0000;">您可以在程式的最前方加上ob_start();這個函數</span>。这样就可以解决了。</span></div>
<p>4.set output_buffering = On in php.ini (开启php.ini中的output_buffering )<br />
set output_buffering = On will enable output buffering for all files. But this method may slow down your php output. The performance of this method depends on which Web server you&#8217;re working with, and what kind of scripts you&#8217;re using.<br />
这种方法和3b的方法理论上是一样的。但是这种方法开启了所有php程序的输出缓存，这样做可能影响php执行效率，这取决于服务器的性能和代码的复杂度。</p>
<p> 最后提醒在改代码时,如果使用utf-8编码，一定要去掉UTF-8中的BOM，这都是因为utf-8编码文件含有的bom原因，而php4,5都是不支持bom的。去掉bom，可以用Notepad++打开转换一下。（我就是看了这个才解决问题的）</p>
<p> 以上是从网络中学到的.</p>
<blockquote><div>&raquo; 转载请注明来源：<a title="牛博哄哄" href="http://www.niuhh.com">牛博哄哄</a> &raquo; <a rel="bookmark" title="解决Warning: Cannot modify header information &#8211; headers already sent by &#8230;&#8230;" href="http://www.niuhh.com/archives/138.html">《解决Warning: Cannot modify header information &#8211; headers already sent by &#8230;&#8230;》</a></div><div>&raquo; 本文链接地址：<a rel="bookmark" title="解决Warning: Cannot modify header information &#8211; headers already sent by &#8230;&#8230;" href="http://www.niuhh.com/archives/138.html">http://www.niuhh.com/archives/138.html</a></div><div>&raquo; 订阅本站：<a title="牛博哄哄" href="http://feed.feedsky.com/niuhh">http://feed.feedsky.com/niuhh</a></div></blockquote>
	标签：<a href="http://www.niuhh.com/archives/tag/php" title="PHP" rel="tag">PHP</a>, <a href="http://www.niuhh.com/archives/tag/warning" title="Warning" rel="tag">Warning</a>, <a href="http://www.niuhh.com/archives/tag/%e4%bb%a3%e7%a0%81" title="代码" rel="tag">代码</a>, <a href="http://www.niuhh.com/archives/tag/%e8%a7%a3%e5%86%b3" title="解决" rel="tag">解决</a><br />

	<h4>你可能对以下内容感兴趣</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.niuhh.com/archives/32.html" title="推荐:000webhost 1.5GB免费可绑米PHP空间(见证稳定) (2010年01月21日)">推荐:000webhost 1.5GB免费可绑米PHP空间(见证稳定)</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.niuhh.com/archives/138.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>推荐:000webhost 1.5GB免费可绑米PHP空间(见证稳定)</title>
		<link>http://www.niuhh.com/archives/32.html</link>
		<comments>http://www.niuhh.com/archives/32.html#comments</comments>
		<pubDate>Thu, 21 Jan 2010 13:55:18 +0000</pubDate>
		<dc:creator>NiuHH</dc:creator>
				<category><![CDATA[精彩资源]]></category>
		<category><![CDATA[000webhost]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[免费空间]]></category>

		<guid isPermaLink="false">http://www.niuhh.com/?p=32</guid>
		<description><![CDATA[000webhost.com是国外著名空间商Hosting24旗下的一个产品，号称是“比收费空间更好的免费空间”，刚发布的时候，在国内红极一时，这个免费空间无论从口碑还是性 能，在国内都有很高的评价，本站目前的空间用的就是000webhost的免费空间，000webhost的免费空间依然稳定。000webhost免费空间屏蔽中国的申请，申请必看攻略请点击这里，注意，用代理申请容易被删站。
先看下000webhost免费空间的基本参数，容量1.5GB，月流量100GB，数据库容量不限，可建2个用户，支持PHP/MYSQL /FTP/Cron Jobs，支持.htaccess文件的自定义，单个文件上传无限制，但每个月会清除大于5MB的文件，域名最多可绑定5个。
优点：组件支持完美，控制面板功能强，稳定性高，客服支持相当到位，适合追求稳定的站长。
缺点：由于000webhost见证过中国的“免费大军”，所以限制了中国IP的申请，不是申请不到，而是你的信箱永远无法收到确认信，而且不能删除未开通的账户，白白浪费邮件地址，而且用代理申请容易被分配到已经被“墙”了的服务器上。。。NiuHH是通过人工开通000webhost的免费空间的，不算难，申请方法 点击这里查看。
我得强调一下，这个空间适合日IP在100-500左右的站长，但不适合新手站长，甚至有的连连站点程序都没选好，那还是别申请这个空间了。申请开通后迅速上传站点文件，最好本地就调试好。空间的服务质量堪比收费空间，但相对管理是很严格的，用几天就不用了，或者传一堆ASP文件上去 -_-，谁还提供免费空间？只要你偶尔登陆登陆控制面板，勤更新自己的站点，这样是绝不会被删站的。
如果你申请的空间确实开通了，但通过FTP软件怎么也连不上，并且无法访问，请挂美国代理访问试试，如果能访问就说明你的空间被分配到了000webhost被屏蔽的服务器上了，这没办法，重新申请一个就好了。
申请地址：点击申请（注：申请前最好先看下面的申请攻略）
申请攻略：点击查看
以下是此款免费空间的控制面板，功能很多很强大。


下面是根据网友使用实际情况总结出的一些方法，大家注意下：
事实证明，在申请的时候绑定自己的 cn 米或者 com.cn 米，尤其是 com.cn ，通过的概率极大，为什么不清楚，可能和 cn，com.cn 在 godaddy 上卖29.99刀有关系。。。或者可以这样理解，用自己的域名去申请从侧面反映出你对这个空间的重视（个人意见，仅供参考）。
关于控制面板，000webhost提供的并不是标准的cPanel11控制面板，毕竟cPanel是是收费软件，虽然遗憾，但控制面板这个东西只要网站安装好一般就很少管了。
关于在线解压，000webhost支持在线解压，但每个压缩包最大为5MB，网友 给出了一个方法可以实现大容量压缩包的在线解压。
我也是费了好大力气才明白在线解压的具体方法。
首先就是用FTP工具上传你的压缩包
之后登陆：http://www.net2ftp.com/
FTP server：你的二级域名。
Username：填写000webhost用户编号（例如a7******）
Password：你的帐户密码
Initial directory：可以填写：/public_html
然后选择界面语言，登录，找到ZIP压缩文件，选择，然后点击解压，即可实现在线解压。解压过程一定要注意：如果压缩包较大，解压时间可能较长，不要刷新。要等到解压完毕。
FTP的登陆资料可以在自己的控制面板中的”View Account Detail”中的”File Upload Details”查看。
压缩包的格式支持zip，gz，但不支持rar，这是国际惯例。如果在解压过程中出现失败的情况，如果用WinRAR压缩，请将“压缩方式”改为 “存储”或者直接使用WinZIP进行压缩。000webhost对于要解压的文件有5MB的限制，但通过FTP上传文件没有大小的限制，不过每个月 000webhost会清除服务器中大于5MB的文件。
关于域名绑定，000webhost支持使用NS/A记录等方式进行域名的解析，请在000webhost和米商做两方面都做好设置。Hiang推荐使用A记录，000webhost请在控制面板中的”Parked domain”中添加域名格式如下xxx.com，米商那里将www.xxx.com和xxx.com的A记录均指向000webhost分配给你的IP 地址（需在控制面板中的View Account Detail中查看）。这样无论www.xxx.com还是xxx.com都可以访问了，可以试试www.niuhh.com ~
关于自定义错误页，官方FAQ list给出的解释是“you can set up your own custom error pages, by using .htaccess file.”但网友 反应定义不能，目前测试中。。。如果你用WordPress的话有些主题自带错误页，无限博客的错误页面就是主题自带的，也不用做什么设置～
关于数据的备份，以下是网友 给出的一点意见：
1.关于备份问题，在此NiuHH明确提醒你，免费空间不稳定，用户需要多备份文件，000webhost为免费用户提供了30天自动备份的功能，但是30天会不会太长了？广大草根站长应该学会自己备份，建议如果博客每天更新量大的话，每隔24小时备份一次，如果今天备份了，就可以把昨天的备份删除，免得以后自己都找不到最近的备份文件。一般用户建议48小时备份一次，如果服务器被墙的话，也只丢失两天的资料，损失也不是太大，所以呢，大家要学会备份。（备份也很简单，比如NiuHH的这个WP博客使用的是wp db backup自动备份插件，每到时间自动备份后以邮件方式发到邮箱，超棒~）
2.关于如何在线备份，进入控制面板，在 Files下找到Backups，进入后，点击Generrate New Fresh Backup。就可以备份了。
好了，不说了，只是给大家提个建议，觉得有用就照着做吧。
对了，使用000webhost免费空间，每个网页源代码的最下部都有000webhost自动加上去的统计代码，可以自行查看～
000webhost提供的空间服务确实非常之好！1.5G的容量，100G的流量！长年250ms到300ms的ping值让广大草根那个感动啊！但有时总觉得页面载入到最后时会卡一下！这是为什么呢？
原因就是这个000webhost自身附加的统计代码！解决办法当然是去除这个家伙！
但是在cpanel上一番查找，都没有发现有关掉的地方！最后求助网络，找到了这页面: http://members.000webhost.com/analytics.php
进入页面，输入你的空间帐户信息，在下面选择 Disable Code ，提交就OK了~
各位使用000webhost的新手站长们，快去关吧！
最后，NiuHH在此于广大博友共勉，谨记：
免费空间不稳定，重要数据请经常备份。本站不对发布的免费空间的服务以及对您造成的损失承担任何责任。—免费并不意味着浪费。—为了其他人的利益，不要过度注册。有问题请留言，我的信箱经常在线，有留言我会第一时间收到，手头不忙的话我会尽快回复～
还等什么，申请去吧
申请地址：点击申请（注：申请前最好先看下面的申请攻略）
申请攻略：点击查看
&#187; [...]]]></description>
			<content:encoded><![CDATA[<p><span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/000webhost" title="查看 000webhost 的全部文章" target="_blank">000webhost</a></span>.com是国外著名空间商Hosting24旗下的一个产品，号称是“比收<a href="http://www.niuhh.com/archives/40.html"><img class="alignright size-full wp-image-33" title="000webhost" src="http://www.niuhh.com/wp-content/uploads/2010/01/000webhost.gif" alt="000webhost" width="367" height="107" /></a>费空间更好的<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e5%85%8d%e8%b4%b9%e7%a9%ba%e9%97%b4" title="查看 免费空间 的全部文章" target="_blank">免费空间</a></span>”，刚发布的时候，在国内红极一时，这个免费空间无论从口碑还是性 能，在国内都有很高的评价，本站目前的空间用的就是<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/000webhost" title="查看 000webhost 的全部文章" target="_blank">000webhost</a></span>的免费<span id="more-32"></span>空间，000webhost的免费空间依然稳定。000webhost免费空间屏蔽中国的申请，申请必看攻略请点击这里，注意，用代理申请容易被删站。</p>
<p>先看下000webhost免费空间的基本参数，容量1.5GB，月流量100GB，数据库容量不限，可建2个用户，支持<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/php" title="查看 PHP 的全部文章" target="_blank">PHP</a></span>/MYSQL /FTP/Cron Jobs，支持.htaccess文件的自定义，单个文件上传无限制，但每个月会清除大于5MB的文件，域名最多可绑定5个。<br />
优点：组件支持完美，控制面板功能强，稳定性高，客服支持相当到位，适合追求稳定的站长。<br />
缺点：由于000webhost见证过中国的“免费大军”，所以限制了中国IP的申请，不是申请不到，而是你的信箱永远无法收到确认信，而且不能删除未开通的账户，白白浪费邮件地址，而且用代理申请容易被分配到已经被“墙”了的服务器上。。。<span class='wp_keywordlink'><a href="http://www.niuhh.com" title="牛博哄哄" target="_blank">NiuHH</a></span>是通过人工开通000webhost的免费空间的，不算难，申请方法 点击这里查看。<br />
我得强调一下，这个空间适合日IP在100-500左右的站长，但不适合新手站长，甚至有的连连站点程序都没选好，那还是别申请这个空间了。申请开通后迅速上传站点文件，最好本地就调试好。空间的服务质量堪比收费空间，但相对管理是很严格的，用几天就不用了，或者传一堆ASP文件上去 -_-，谁还提供免费空间？只要你偶尔登陆登陆控制面板，勤更新自己的站点，这样是绝不会被删站的。</p>
<p>如果你申请的空间确实开通了，但通过FTP软件怎么也连不上，并且无法访问，请挂美国代理访问试试，如果能访问就说明你的空间被分配到了000webhost被屏蔽的服务器上了，这没办法，重新申请一个就好了。</p>
<p><strong>申请地址：<a href="http://www.000webhost.com/256356.html" target="_blank">点击申请</a>（<span style="color: #ff0000;">注：申请前最好先看下面的申请攻略</span>）<br />
申请攻略：<a href="http://www.niuhh.com/archives/40.html" target="_blank">点击查看</a></strong></p>
<p>以下是此款免费空间的控制面板，功能很多很强大。<br />
<a href="http://www.niuhh.com/wp-content/uploads/2010/01/000webhost1.jpg"><img class="alignnone size-full wp-image-35" title="000webhost" src="http://www.niuhh.com/wp-content/uploads/2010/01/000webhost1.jpg" alt="000webhost" width="484" height="423" /></a><br />
<a href="http://www.niuhh.com/wp-content/uploads/2010/01/000webhost2.jpg"><img class="alignnone size-full wp-image-34" title="000webhost" src="http://www.niuhh.com/wp-content/uploads/2010/01/000webhost2.jpg" alt="000webhost" width="480" height="422" /></a><br />
下面是根据网友使用实际情况总结出的一些方法，大家注意下：</p>
<p>事实证明，在申请的时候绑定自己的 cn 米或者 com.cn 米，尤其是 com.cn ，通过的概率极大，为什么不清楚，可能和 cn，com.cn 在 godaddy 上卖29.99刀有关系。。。或者可以这样理解，用自己的域名去申请从侧面反映出你对这个空间的重视（个人意见，仅供参考）。</p>
<p>关于控制面板，000webhost提供的并不是标准的cPanel11控制面板，毕竟cPanel是是收费软件，虽然遗憾，但控制面板这个东西只要网站安装好一般就很少管了。</p>
<p>关于在线解压，000webhost支持在线解压，但每个压缩包最大为5MB，网友 给出了一个方法可以实现大容量压缩包的在线解压。</p>
<p>我也是费了好大力气才明白在线解压的具体方法。<br />
首先就是用FTP工具上传你的压缩包<br />
之后登陆：http://www.net2ftp.com/<br />
FTP server：你的二级域名。<br />
Username：填写000webhost用户编号（例如a7******）<br />
Password：你的帐户密码<br />
Initial directory：可以填写：/public_html<br />
然后选择界面语言，登录，找到ZIP压缩文件，选择，然后点击解压，即可实现在线解压。解压过程一定要注意：如果压缩包较大，解压时间可能较长，不要刷新。要等到解压完毕。<br />
FTP的登陆资料可以在自己的控制面板中的”View Account Detail”中的”File Upload Details”查看。</p>
<p>压缩包的格式支持zip，gz，但不支持rar，这是国际惯例。如果在解压过程中出现失败的情况，如果用WinRAR压缩，请将“压缩方式”改为 “存储”或者直接使用WinZIP进行压缩。000webhost对于要解压的文件有5MB的限制，但通过FTP上传文件没有大小的限制，不过每个月 000webhost会清除服务器中大于5MB的文件。</p>
<p>关于域名绑定，000webhost支持使用NS/A记录等方式进行域名的解析，请在000webhost和米商做两方面都做好设置。Hiang推荐使用A记录，000webhost请在控制面板中的”Parked domain”中添加域名格式如下xxx.com，米商那里将www.xxx.com和xxx.com的A记录均指向000webhost分配给你的IP 地址（需在控制面板中的View Account Detail中查看）。这样无论www.xxx.com还是xxx.com都可以访问了，可以试试www.niuhh.com ~</p>
<p>关于自定义错误页，官方FAQ list给出的解释是“you can set up your own custom error pages, by using .htaccess file.”但网友 反应定义不能，目前测试中。。。如果你用WordPress的话有些主题自带错误页，无限博客的错误页面就是主题自带的，也不用做什么设置～</p>
<p>关于数据的备份，以下是网友 给出的一点意见：</p>
<p>1.关于备份问题，在此NiuHH明确提醒你，免费空间不稳定，用户需要多备份文件，000webhost为免费用户提供了30天自动备份的功能，但是30天会不会太长了？广大草根站长应该学会自己备份，建议如果博客每天更新量大的话，每隔24小时备份一次，如果今天备份了，就可以把昨天的备份删除，免得以后自己都找不到最近的备份文件。一般用户建议48小时备份一次，如果服务器被墙的话，也只丢失两天的资料，损失也不是太大，所以呢，大家要学会备份。（备份也很简单，比如NiuHH的这个WP博客使用的是wp db backup自动备份插件，每到时间自动备份后以邮件方式发到邮箱，超棒~）<br />
2.关于如何在线备份，进入控制面板，在 Files下找到Backups，进入后，点击Generrate New Fresh Backup。就可以备份了。</p>
<p>好了，不说了，只是给大家提个建议，觉得有用就照着做吧。</p>
<p>对了，使用000webhost免费空间，每个网页源代码的最下部都有000webhost自动加上去的统计代码，可以自行查看～</p>
<p>000webhost提供的空间服务确实非常之好！1.5G的容量，100G的流量！长年250ms到300ms的ping值让广大草根那个感动啊！但有时总觉得页面载入到最后时会卡一下！这是为什么呢？</p>
<p>原因就是这个000webhost自身附加的统计代码！解决办法当然是去除这个家伙！</p>
<p>但是在cpanel上一番查找，都没有发现有关掉的地方！最后求助网络，找到了这页面: http://members.000webhost.com/analytics.php<br />
进入页面，输入你的空间帐户信息，在下面选择 Disable Code ，提交就OK了~</p>
<p>各位使用000webhost的新手站长们，快去关吧！</p>
<p>最后，NiuHH在此于广大博友共勉，谨记：<br />
免费空间不稳定，重要数据请经常备份。本站不对发布的免费空间的服务以及对您造成的损失承担任何责任。—免费并不意味着浪费。—为了其他人的利益，不要过度注册。有问题请留言，我的信箱经常在线，有留言我会第一时间收到，手头不忙的话我会尽快回复～</p>
<p>还等什么，申请去吧</p>
<p><strong>申请地址：<a href="http://www.000webhost.com/256356.html" target="_blank">点击申请</a>（注：申请前最好先看下面的申请攻略）<br />
申请攻略：<a href="../archives/40.html" target="_blank">点击查看</a></strong></p>
<blockquote><div>&raquo; 转载请注明来源：<a title="牛博哄哄" href="http://www.niuhh.com">牛博哄哄</a> &raquo; <a rel="bookmark" title="推荐:000webhost 1.5GB免费可绑米PHP空间(见证稳定)" href="http://www.niuhh.com/archives/32.html">《推荐:000webhost 1.5GB免费可绑米PHP空间(见证稳定)》</a></div><div>&raquo; 本文链接地址：<a rel="bookmark" title="推荐:000webhost 1.5GB免费可绑米PHP空间(见证稳定)" href="http://www.niuhh.com/archives/32.html">http://www.niuhh.com/archives/32.html</a></div><div>&raquo; 订阅本站：<a title="牛博哄哄" href="http://feed.feedsky.com/niuhh">http://feed.feedsky.com/niuhh</a></div></blockquote>
	标签：<a href="http://www.niuhh.com/archives/tag/000webhost" title="000webhost" rel="tag">000webhost</a>, <a href="http://www.niuhh.com/archives/tag/php" title="PHP" rel="tag">PHP</a>, <a href="http://www.niuhh.com/archives/tag/%e5%85%8d%e8%b4%b9%e7%a9%ba%e9%97%b4" title="免费空间" rel="tag">免费空间</a><br />

	<h4>你可能对以下内容感兴趣</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.niuhh.com/archives/40.html" title="000webhost免费空间申请攻略(详细) (2010年01月21日)">000webhost免费空间申请攻略(详细)</a> (36)</li>
	<li><a href="http://www.niuhh.com/archives/138.html" title="解决Warning: Cannot modify header information &#8211; headers already sent by &#8230;&#8230; (2010年04月15日)">解决Warning: Cannot modify header information &#8211; headers already sent by &#8230;&#8230;</a> (0)</li>
	<li><a href="http://www.niuhh.com/archives/147.html" title="000webhost免费空间申请注意事项 (2010年04月27日)">000webhost免费空间申请注意事项</a> (9)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.niuhh.com/archives/32.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
