<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Codeigniter: Handling errors</title>
	<atom:link href="http://www.askaboutphp.com/172/codeigniter-handling-errors.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.askaboutphp.com/172/codeigniter-handling-errors.html</link>
	<description></description>
	<lastBuildDate>Sun, 05 Sep 2010 17:36:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: syabac</title>
		<link>http://www.askaboutphp.com/172/codeigniter-handling-errors.html/comment-page-1#comment-22629</link>
		<dc:creator>syabac</dc:creator>
		<pubDate>Tue, 06 Jul 2010 08:48:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=172#comment-22629</guid>
		<description>thanks for sharing.
but how if i want to save the logs to database like sqlite?
any idea?</description>
		<content:encoded><![CDATA[<p>thanks for sharing.<br />
but how if i want to save the logs to database like sqlite?<br />
any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webmaster</title>
		<link>http://www.askaboutphp.com/172/codeigniter-handling-errors.html/comment-page-1#comment-19239</link>
		<dc:creator>webmaster</dc:creator>
		<pubDate>Thu, 11 Feb 2010 06:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=172#comment-19239</guid>
		<description>Hi Eric
Thanks for the heads up. Didn&#039;t know about the db_debug setting.</description>
		<content:encoded><![CDATA[<p>Hi Eric<br />
Thanks for the heads up. Didn&#8217;t know about the db_debug setting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Jones</title>
		<link>http://www.askaboutphp.com/172/codeigniter-handling-errors.html/comment-page-1#comment-19228</link>
		<dc:creator>Eric Jones</dc:creator>
		<pubDate>Wed, 10 Feb 2010 13:51:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=172#comment-19228</guid>
		<description>Great Write Up.  I have been working with CodeIgniter for about six months now and I really like the framework.

However, I have noticed that even if you set error reporting to something like E_ERROR or 0, and set the log_threshold to 1.  That DB errors are still displayed.  To turn off, DB errors you need to change the setting for db_debug within the file ./system/application/config/database.php.  This files states this about the setting.

[&#039;db_debug&#039;] TRUE/FALSE - Whether database errors should be displayed.

I set db_debug to false, and purposefully created some DB errors.  The errors were not displayed on the screen.  However, the errors were not logged either, even though I had a setting of 1 for error reporting.  I even changed my error reporting threshold to 4, but still no DB Errors were getting written to my log file.

Upon further investigation, I noticed that the query function within the file ./system/application/database/DB_driver.php will only log messages if the db_debug is set to true.

So just be aware of that issue when launching your website into production with db_debug set to false.</description>
		<content:encoded><![CDATA[<p>Great Write Up.  I have been working with CodeIgniter for about six months now and I really like the framework.</p>
<p>However, I have noticed that even if you set error reporting to something like E_ERROR or 0, and set the log_threshold to 1.  That DB errors are still displayed.  To turn off, DB errors you need to change the setting for db_debug within the file ./system/application/config/database.php.  This files states this about the setting.</p>
<p>['db_debug'] TRUE/FALSE &#8211; Whether database errors should be displayed.</p>
<p>I set db_debug to false, and purposefully created some DB errors.  The errors were not displayed on the screen.  However, the errors were not logged either, even though I had a setting of 1 for error reporting.  I even changed my error reporting threshold to 4, but still no DB Errors were getting written to my log file.</p>
<p>Upon further investigation, I noticed that the query function within the file ./system/application/database/DB_driver.php will only log messages if the db_debug is set to true.</p>
<p>So just be aware of that issue when launching your website into production with db_debug set to false.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Henry</title>
		<link>http://www.askaboutphp.com/172/codeigniter-handling-errors.html/comment-page-1#comment-19224</link>
		<dc:creator>Chris Henry</dc:creator>
		<pubDate>Wed, 10 Feb 2010 06:53:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=172#comment-19224</guid>
		<description>CodeIgniter is really great for development and provides a lot of functionality.  It&#039;s error handler is great for being able to see what&#039;s happening in an easy to read way.  However, it doesn&#039;t provide a good or intuitive way to turn errors off.  

CodeIgniter pays no attention to php.ini&#039;s display_errors, which is terrible.  In my experience the best way to turn off errors has been to empty the error.php file.  Additionally, the function called as to handle errors is named exception_handler.  These issues aren&#039;t damning, but difficult to deal with when you really, really don&#039;t want to show errors in production.</description>
		<content:encoded><![CDATA[<p>CodeIgniter is really great for development and provides a lot of functionality.  It&#8217;s error handler is great for being able to see what&#8217;s happening in an easy to read way.  However, it doesn&#8217;t provide a good or intuitive way to turn errors off.  </p>
<p>CodeIgniter pays no attention to php.ini&#8217;s display_errors, which is terrible.  In my experience the best way to turn off errors has been to empty the error.php file.  Additionally, the function called as to handle errors is named exception_handler.  These issues aren&#8217;t damning, but difficult to deal with when you really, really don&#8217;t want to show errors in production.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ask About PHP: Codeigniter: Handling errors &#124; Webs Developer</title>
		<link>http://www.askaboutphp.com/172/codeigniter-handling-errors.html/comment-page-1#comment-19216</link>
		<dc:creator>Ask About PHP: Codeigniter: Handling errors &#124; Webs Developer</dc:creator>
		<pubDate>Tue, 09 Feb 2010 22:01:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=172#comment-19216</guid>
		<description>[...] a new post from the Ask About PHP blog they look at handling different types of errors in a popular PHP framework, CodeIgniter, most being included with the framework.   The way I see [...]</description>
		<content:encoded><![CDATA[<p>[...] a new post from the Ask About PHP blog they look at handling different types of errors in a popular PHP framework, CodeIgniter, most being included with the framework.   The way I see [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
