<?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, 22 May 2013 16:20:00 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Developer Drive: PHP Error Checking]]></title>
      <guid>http://www.phpdeveloper.org/news/18297</guid>
      <link>http://www.phpdeveloper.org/news/18297</link>
      <description><![CDATA[<p>
The Developer Drive site has a new post with a few beginner suggestions about how to <a href="http://www.developerdrive.com/2012/07/php-error-checking/">do some error reporting</a> in your applications:
</p>
<blockquote>
As much as programmers attempt to anticipate every possible action or combination of actions that a user can take when encountering a web application, no one can foresee them all. When the user takes an unanticipated course of action and "breaks" the application, the software needs to catch them before they fall.
</blockquote>
<p>
They show you a few methods for handling the errors that might come up including the <a href="http://php.net/die">die</a> function, <a href="http://us.php.net/throw">exception handling</a>, <a href="http://php.net/trigger_error">triggering errors</a> and just outputting errors via an "echo" or "print" (or something similar).
</p>]]></description>
      <pubDate>Tue, 31 Jul 2012 12:58:49 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[WebProNews.com: Form Checking - Verifying Name Using PHP Ereg]]></title>
      <guid>http://www.phpdeveloper.org/news/5668</guid>
      <link>http://www.phpdeveloper.org/news/5668</link>
      <description><![CDATA[<p>
On WebProNews.com, there's a <a href="http://www.webpronews.com/expertarticles/expertarticles/wpn-62-20060622FormCheckingVerifyingNameUsingPHPEreg.html">brief tutorial</a> on using regular expressions, specifically for filtering "names" entered by users.
</p>
<blockquote>
<p>
One important use of Regular Expressions (Regex) is to verify fields submitted via a form. In this article, we attempt to write an expression that is able to verify the user's first name, middle name, last name or just names in general.
</p>
<p>
The expression should allow names such as "Mary", "Mr. James Smith" and "Mrs O'Shea" for example. So the challenge here is to allow spaces, periods and single quotation marks in the name field and reject any other characters.
</p>
</blockquote>
<p>
Their <a href="http://www.webpronews.com/expertarticles/expertarticles/wpn-62-20060622FormCheckingVerifyingNameUsingPHPEreg.html">examples</a> use the preg_* functions in PHP to work, first looking for any invalid characters in the string(s), then amending it to ensure that there aren't any numbers involved either. The few lines of code it takes are included as well.
</p>]]></description>
      <pubDate>Fri, 23 Jun 2006 07:40:01 -0500</pubDate>
    </item>
  </channel>
</rss>
