<?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>My DigitalZone &#187; PHP</title>
	<atom:link href="http://mydigitalzone.net/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://mydigitalzone.net</link>
	<description></description>
	<lastBuildDate>Fri, 15 Jan 2010 04:34:05 +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</title>
		<link>http://mydigitalzone.net/2009/04/28/warning-cannot-modify-header-information-headers-already-sent/</link>
		<comments>http://mydigitalzone.net/2009/04/28/warning-cannot-modify-header-information-headers-already-sent/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 05:54:45 +0000</pubDate>
		<dc:creator>Jenny</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[header]]></category>

		<guid isPermaLink="false">http://mydigitalzone.net/?p=181</guid>
		<description><![CDATA[<style type="text/css">
<!--
.nmstitle {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 13px;
	text-transform: capitalize;
	color: #003333;
}

.nmsdesc {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;

	color: #003333;
}
-->
</style>



&#8220;Warning: Cannot modify header information &#8211; headers already sent by (output started at /some/path/public_html/xxxx.php:50) in /some/path/public_html/some_dir/yyyy.php on line 250&#8243;

If you have a PHP based web site, you may have encountered this Warning message.  It&#8217;s frustrating when it happens.  If you are a PHP guru, you may be able to solve it right away. [...]]]></description>
			<content:encoded><![CDATA[<style type="text/css">
<!--
.nmstitle {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 13px;
	text-transform: capitalize;
	color: #003333;
}

.nmsdesc {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;

	color: #003333;
}
-->
</style><p id="top" /><script type="text/javascript"><!--
google_ad_client = "pub-2241621611203959";
/* DZone_posts336x280, created 1/2/09 */
google_ad_slot = "2956728885";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>&#8220;Warning: Cannot modify header information &#8211; headers already sent by (output started at /some/path/public_html/xxxx.php:50) in /some/path/public_html/some_dir/yyyy.php on line 250&#8243;<br />
<br />
If you have a PHP based web site, you may have encountered this Warning message.  It&#8217;s frustrating when it happens.  If you are a PHP guru, you may be able to solve it right away.  For a newbie PHP programmer, it&#8217;s not obvious.  I scratched my head when I first encountered this problem, and it took a long time to fix it. </p>
<p>First, you need to <strong>check the obvious</strong>.  Have you edited the files in your warning message before you started to get the warning?  You need to <strong>remove any white space before and after <?php .... ?></strong>.  </p>
<p>Then, you need to check to see if you are using header() before any output is sent.  For example, <a href = "http://us3.php.net/header" >the php.net gives some examples</a>.  Here&#8217;s <a hrev = "http://phphelper.wordpress.com/php-tutorials/php-cannot-modify-header-information-headers-already-sent-by-php-header-already-sent-error/" >another example</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mydigitalzone.net/2009/04/28/warning-cannot-modify-header-information-headers-already-sent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
