<?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"
	>
<channel>
	<title>Comments on: displaying errors</title>
	<atom:link href="http://php100.wordpress.com/2008/05/07/displaying-errors/feed/" rel="self" type="application/rss+xml" />
	<link>http://php100.wordpress.com/2008/05/07/displaying-errors/</link>
	<description>What if...</description>
	<pubDate>Thu, 24 Jul 2008 19:18:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>By: hitesh</title>
		<link>http://php100.wordpress.com/2008/05/07/displaying-errors/#comment-13112</link>
		<dc:creator>hitesh</dc:creator>
		<pubDate>Thu, 15 May 2008 10:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=42#comment-13112</guid>
		<description>keep display_errors off it gives sometime trouble for debugging.</description>
		<content:encoded><![CDATA[<p>keep display_errors off it gives sometime trouble for debugging.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: website design</title>
		<link>http://php100.wordpress.com/2008/05/07/displaying-errors/#comment-13109</link>
		<dc:creator>website design</dc:creator>
		<pubDate>Wed, 14 May 2008 10:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=42#comment-13109</guid>
		<description>error_reporting — Sets which PHP errors are reported</description>
		<content:encoded><![CDATA[<p>error_reporting — Sets which PHP errors are reported</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Heyes&#8217; Blog: Displaying Errors (based on hostname) &#124; Development Blog With Code Updates : Developercast.com</title>
		<link>http://php100.wordpress.com/2008/05/07/displaying-errors/#comment-13076</link>
		<dc:creator>Richard Heyes&#8217; Blog: Displaying Errors (based on hostname) &#124; Development Blog With Code Updates : Developercast.com</dc:creator>
		<pubDate>Thu, 08 May 2008 17:12:55 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=42#comment-13076</guid>
		<description>[...] a response to this post on the PHP 10.0 Blog, Richard Heyes offers a method for what Stas was wanting:   OK, then what we [...]</description>
		<content:encoded><![CDATA[<p>[...] a response to this post on the PHP 10.0 Blog, Richard Heyes offers a method for what Stas was wanting:   OK, then what we [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Hoffman</title>
		<link>http://php100.wordpress.com/2008/05/07/displaying-errors/#comment-13075</link>
		<dc:creator>Ben Hoffman</dc:creator>
		<pubDate>Thu, 08 May 2008 15:58:24 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=42#comment-13075</guid>
		<description>In PHP 5, you can register an error handler class and handle all errors as exceptions. Just catch the exceptions and log them (or display them if you wish).</description>
		<content:encoded><![CDATA[<p>In PHP 5, you can register an error handler class and handle all errors as exceptions. Just catch the exceptions and log them (or display them if you wish).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bleedingshadow</title>
		<link>http://php100.wordpress.com/2008/05/07/displaying-errors/#comment-13074</link>
		<dc:creator>bleedingshadow</dc:creator>
		<pubDate>Thu, 08 May 2008 15:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=42#comment-13074</guid>
		<description>:0)</description>
		<content:encoded><![CDATA[<p>:0)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dougal</title>
		<link>http://php100.wordpress.com/2008/05/07/displaying-errors/#comment-13071</link>
		<dc:creator>Dougal</dc:creator>
		<pubDate>Thu, 08 May 2008 08:02:30 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=42#comment-13071</guid>
		<description>Yeah, that way would work better.

Anyway, I agree with Robert. The only reason its really useful in ASP.NET is because it fires up the debugger and allows you to debug straight away.

I wouldn't want to risk seeing a different view of a live website. Development (testing if you can have 3) and Production servers are the solution really. Display everything in dev and hide it in production.

It's more important to make sure all errors are logged and checked.</description>
		<content:encoded><![CDATA[<p>Yeah, that way would work better.</p>
<p>Anyway, I agree with Robert. The only reason its really useful in ASP.NET is because it fires up the debugger and allows you to debug straight away.</p>
<p>I wouldn&#8217;t want to risk seeing a different view of a live website. Development (testing if you can have 3) and Production servers are the solution really. Display everything in dev and hide it in production.</p>
<p>It&#8217;s more important to make sure all errors are logged and checked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Open</title>
		<link>http://php100.wordpress.com/2008/05/07/displaying-errors/#comment-13070</link>
		<dc:creator>Open</dc:creator>
		<pubDate>Thu, 08 May 2008 06:34:14 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=42#comment-13070</guid>
		<description>You can also implement set_error_handler / set_ exception_handler . I don't have any problems with finding errors.</description>
		<content:encoded><![CDATA[<p>You can also implement set_error_handler / set_ exception_handler . I don&#8217;t have any problems with finding errors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SlashLife</title>
		<link>http://php100.wordpress.com/2008/05/07/displaying-errors/#comment-13069</link>
		<dc:creator>SlashLife</dc:creator>
		<pubDate>Thu, 08 May 2008 05:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=42#comment-13069</guid>
		<description>@ Dougal: Why not real netmask matching?
&lt;code&gt;
$masks = array(
  array('255.0.0.0'    , '127.0.0.1'),  // loopback
  array('255.255.255.0', '192.168.0.0') // LAN
);

function mask_matching($ip, $masks) {
  $ip = ip2long($ip);
  foreach($masks as $mask)
//    if ((ip2long($mask[1]) &#38; ip2long($mask[0])) == ($ip &#38; ip2long($mask[0])))
    if (!(ip2long($mask[0]) &#38; ($ip ^ ip2long(mask[1])))) return true;
  }
  return false;
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>@ Dougal: Why not real netmask matching?<br />
<code><br />
$masks = array(<br />
  array('255.0.0.0'    , '127.0.0.1'),  // loopback<br />
  array('255.255.255.0', '192.168.0.0') // LAN<br />
);</p>
<p>function mask_matching($ip, $masks) {<br />
  $ip = ip2long($ip);<br />
  foreach($masks as $mask)<br />
//    if ((ip2long($mask[1]) &amp; ip2long($mask[0])) == ($ip &amp; ip2long($mask[0])))<br />
    if (!(ip2long($mask[0]) &amp; ($ip ^ ip2long(mask[1])))) return true;<br />
  }<br />
  return false;<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://php100.wordpress.com/2008/05/07/displaying-errors/#comment-13067</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Thu, 08 May 2008 01:29:08 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=42#comment-13067</guid>
		<description>No, I don't think it would be useful. error_log exists for a reason and I think people should use it :)</description>
		<content:encoded><![CDATA[<p>No, I don&#8217;t think it would be useful. error_log exists for a reason and I think people should use it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Privett</title>
		<link>http://php100.wordpress.com/2008/05/07/displaying-errors/#comment-13065</link>
		<dc:creator>Jeremy Privett</dc:creator>
		<pubDate>Wed, 07 May 2008 22:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://php100.wordpress.com/?p=42#comment-13065</guid>
		<description>Hey Stas,

I think because most PHP installations are on a non-Windows environment that is typically accessed by SSH, this feature wouldn't really see much use. This type of feature is useful in ASP because developers can RDP into the server and load up IE to look at the site from the server itself. Most environments that PHP is deployed in don't necessarily have that capability. I guess someone could use SSH + Lynx to look at the site, but that's not the same as using RDP and a fully graphical browser to inspect your site.

How about a way to specify a collection of IP Addresses to display errors to? Although, I think that would be overkill for a system-level option, when this is easily implemented at run-time and wouldn't make a difference to normal users.</description>
		<content:encoded><![CDATA[<p>Hey Stas,</p>
<p>I think because most PHP installations are on a non-Windows environment that is typically accessed by SSH, this feature wouldn&#8217;t really see much use. This type of feature is useful in ASP because developers can RDP into the server and load up IE to look at the site from the server itself. Most environments that PHP is deployed in don&#8217;t necessarily have that capability. I guess someone could use SSH + Lynx to look at the site, but that&#8217;s not the same as using RDP and a fully graphical browser to inspect your site.</p>
<p>How about a way to specify a collection of IP Addresses to display errors to? Although, I think that would be overkill for a system-level option, when this is easily implemented at run-time and wouldn&#8217;t make a difference to normal users.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
