<?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>PHP Reference Book Blog &#187; display errors</title>
	<atom:link href="http://www.phpreferencebook.com/tag/display-errors/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpreferencebook.com</link>
	<description>PHP Reference: Beginner to Intermediate PHP5</description>
	<lastBuildDate>Thu, 29 Sep 2011 03:50:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Display all PHP Errors and Warnings</title>
		<link>http://www.phpreferencebook.com/tips/display-all-php-errors-and-warnings/</link>
		<comments>http://www.phpreferencebook.com/tips/display-all-php-errors-and-warnings/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 05:10:08 +0000</pubDate>
		<dc:creator>Mario Lurig</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[display errors]]></category>
		<category><![CDATA[display_errors]]></category>
		<category><![CDATA[error reporting]]></category>
		<category><![CDATA[E_ALL]]></category>
		<category><![CDATA[php errors]]></category>
		<category><![CDATA[php warnings]]></category>

		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=18</guid>
		<description><![CDATA[If you wish to see all the PHP errors and warnings in your script, include the following bit of code:
error_reporting(E_ALL);
ini_set('display_errors', '1');]]></description>
			<content:encoded><![CDATA[<p>Every time I was debugging my pages I found myself searching around for this little chunk of code to display PHP errors. So, I put in the book so it was always nearby. Since people still search google endlessly, I thought I would provide it here as well. If you wish to see all the PHP errors and warnings in your script, include the following bit of code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">error_reporting</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">E_ALL</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'display_errors'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Now, continue to beat your head against your keyboard while you continue to hunt down your missing semicolon or closing parenthesis.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpreferencebook.com/tips/display-all-php-errors-and-warnings/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

