<?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>Thu, 15 May 2008 22:40:58 -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>
    <item>
      <title><![CDATA[Richard Heyes' Blog: SMTP for PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9590</guid>
      <link>http://www.phpdeveloper.org/news/9590</link>
      <description><![CDATA[<p>
Since he didn't come across any <a href="http://www.phpguru.org/article.php/195">issues or bug reports</a>, <i>Richard Heyes</i> has officially released his <a href="http://www.phpguru.org/downloads/smtp5/">SMTP class</a> for PHP5 as "out of public beta" and ready for production use.
</p>
<blockquote>
I've not added any new features to the class; I've simply updated it to be, well, better. Plus it uses PHP5's object model better. It's really just an update, ie if you're using the old version and it works, then you have no real reason to update it.
</blockquote>
<p>
You can check out the <a href="http://www.phpguru.org/downloads/smtp5/smtp.phps">source here</a> and an example of it in action <a href="http://www.phpguru.org/downloads/smtp5/example.phps">here</a>.
</p>]]></description>
      <pubDate>Fri, 08 Feb 2008 10:27:00 -0600</pubDate>
    </item>
  </channel>
</rss>
