<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 23 May 2012 11:11:49 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Richard Heyes' Blog: Displaying Errors (based on hostname)]]></title>
      <guid>http://www.phpdeveloper.org/news/10142</guid>
      <link>http://www.phpdeveloper.org/news/10142</link>
      <description><![CDATA[<p>
In a response to <a href="http://php100.wordpress.com/2008/05/07/displaying-errors/">this post</a> on the PHP 10.0 Blog, <i>Richard Heyes</i> <a href="http://www.phpguru.org/#293">offers a method</a> for what <i>Stas</i> was wanting:
</p>
<blockquote>
OK, then what we do if something weird happens in production and we want to see the errors, but we don't want others to see them? [...] Maybe PHP could have some setting like display_errors=local which would enable display_errors for requests originating from developer machine but would disable it when outsider accesses it?
</blockquote>
<p>
<i>Richard</i>'s <a href="http://www.phpguru.org/#293">solution</a> checks the HTTP_HOST value of the current request and, based on whether it's marked as "live" or "dev", uses a ini_set to change the display_errors setting to true/false.
</p>]]></description>
      <pubDate>Thu, 08 May 2008 12:03:57 -0500</pubDate>
    </item>
  </channel>
</rss>

