<?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>Sat, 05 Jul 2008 19:20:45 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Ken Guest's Blog: Validation in Depth - a retort to using just regular expressions]]></title>
      <guid>http://www.phpdeveloper.org/news/10273</guid>
      <link>http://www.phpdeveloper.org/news/10273</link>
      <description><![CDATA[<p>
<i>Ken Guest</i>, in a response to <a href="http://www.phpguru.org/article/300">another post</a> from a different blogger, has posted some of <a href="http://blogs.linux.ie/kenguest/2008/05/26/validation-in-depth-a-retort-to-using-just-regular-expressions/">his own</a> validation replacements for the regular expression method the other blogger chose.
</p>
<blockquote>
I've noticed that <a href="http://www.phpguru.org/">Richard Heyes</a>, who professes himself to be a php guru, deleted my comment on <a href="http://www.phpguru.org/article/300">his "Some common regular expressions" posting</a> which simply pointed out his expressions didn't quite do the job and suggested a few <A href="http://pear.php.net/">PEAR packages</a> that should be used instead of the expressions that he proffered
</blockquote>
<p>
His examples have the benefit of what he calls "defense in depth" - the functionality to catch a bit more than just a regular expression can alone. His examples include <a href="http://pear.php.net/package/Validate">PEAR_Validate</a> for email addresses, <a href="http://pear.php.net/package/Net_CheckIP2">Net_CheckIP2</a> for IP addresses and the <a href="http://pear.php.net/package/Validate_UK/">Validate_UK</a> package for the sort code and telephone numbers.
</p>]]></description>
      <pubDate>Tue, 27 May 2008 07:58:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Vinu Thomas' Blog: Securimage Captcha for PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10231</guid>
      <link>http://www.phpdeveloper.org/news/10231</link>
      <description><![CDATA[<p>
<i>Vinu Thomas</i> has <a href="http://blogs.vinuthomas.com/2008/05/21/securimage-captcha-for-php/">posted about</a> a PHP/GD CAPTCHA solution he's come across - <a href="http://www.phpcaptcha.org/">Secureimage</a>.
</p>
<p>From the company's description:</p>
<blockquote>
Securimage is an open-source free PHP CAPTCHA script for generating complex images and CAPTCHA codes to protect forms from spam and abuse. It can be easily added into existing forms on your website to provide protection from spam bots. It can run on most any webserver as long as you have PHP installed, and GD support within PHP.
</blockquote>
<p>
Features of the tool include simple addition and validation methods, the ability to make audible CAPTCHAs and True Type font support. You can download the software from <a href="http://www.phpcaptcha.org/download/">the project's website</a>. 
</p>]]></description>
      <pubDate>Wed, 21 May 2008 09:30:01 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Validating PHP User Sessions]]></title>
      <guid>http://www.phpdeveloper.org/news/9923</guid>
      <link>http://www.phpdeveloper.org/news/9923</link>
      <description><![CDATA[<p>
On PHPBuilder.com, there's a <a href="http://www.phpbuilder.com/columns/validating_php_user_sessions.php3">new tutorial</a> about validating user sessions - ensuring that data in your user's sessions is valid and isn't an attack trying to sneak in.
</p>
<blockquote>
In a nutshell, sessions are the way that we "maintain state" from one page to the next, that is, how we identify specific users across multiple page requests. The ability to track users as they go from one page to the next using sessions allows us a number of options, such as tracking where they are going (web statistics) or to verify credentials for a specific section of the site.
</blockquote>
<p>
First, there's a little mini-intro to sessions for those unsure on their use. It's followed by a look at some session vulnerabilities that could be introduces by malicious users looking to break things on your site (including HTML/Javascript injection, as their example shows).
</p>
<p>
They recommend a three step plan to get started with the validation of your user's sessions - making it easy for users to log out when they want to, use unique aspects of the remote machine to define the session and to validate all user input, especially things that will be put into a session variable.
</p>]]></description>
      <pubDate>Mon, 07 Apr 2008 11:12:33 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Simple Zend_Form File Upload Example]]></title>
      <guid>http://www.phpdeveloper.org/news/9921</guid>
      <link>http://www.phpdeveloper.org/news/9921</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has <a href="http://akrabat.com/2008/04/07/simple-zend_form-file-upload-example/">posted an example</a> (a simple one to get you started) of creating a file upload form in the Zend Framework.
</p>
<blockquote>
Zend Framework 1.5's Zend_Form component is missing support for the file input element as it is waiting on a file upload component to build upon. We're busy people, so we'll fake it...
</blockquote>
<p>
His example gives a screenshot of the end result and includes all of the code needed to make it all work - the form, the custom file form element, a ValidFile validation class to ensure you're getting exactly what you want and the controller to define the form and execute it once the user submits.
</p>]]></description>
      <pubDate>Mon, 07 Apr 2008 09:30:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[WebReference.com: Working With Forms]]></title>
      <guid>http://www.phpdeveloper.org/news/9881</guid>
      <link>http://www.phpdeveloper.org/news/9881</link>
      <description><![CDATA[<p>
The WebReference.com website has an <a href="http://www.webreference.com/programming/php/working_with_forms/">introductory tutorial</a> showing the budding PHP develper how to get started with one of the keys to web application interaction - forms.
</p>
<blockquote>
Forms are how your users talk to your scripts. To get the most out of PHP, you must master forms. The first thing you need to understand is that although PHP makes it easy to access form data, you must be careful of how you work with the data.
</blockquote>
<p>
The first part of the tutorial is focused on something many applications don't worry about - the security and integrity of the data submitted to them. They talk about things like filtering and various other checks to ensure that the data you're getting is good. They also mention the method for putting submitted values into PHP arrays, checking for valid values, using multiple submit buttons and an example of some of these methods all put together - validating a credit card number.
</p>]]></description>
      <pubDate>Mon, 31 Mar 2008 10:25:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Vinu Thomas' Blog: Quicker and cleaner Form using Zend Form]]></title>
      <guid>http://www.phpdeveloper.org/news/9620</guid>
      <link>http://www.phpdeveloper.org/news/9620</link>
      <description><![CDATA[<p>
On his blog today, <i>Vinu Thomas</i> has <a href="http://blogs.vinuthomas.com/2008/02/13/quicker-and-cleaner-form-using-zend-form/">an example</a> of what he calls a "quicker and cleaner form" using the Zend_Form component of the <a href="http://framework.zend.com">Zend Framework</a>.
</p>
<blockquote>
Usually handing forms involves coding the form in HTML and performing client and server side validation, which usually makes the code for complex forms quite unwieldy. Zend_Form which is available in Zend Framework version 1.5 aims at simplifying this process.
</blockquote>
<p>
With this new version comes the ability to add in methods for validation right into the form definition. His example shows a traditional login form that checks things like if it's required, checking the length and adding filters to modify the input.
</p>]]></description>
      <pubDate>Wed, 13 Feb 2008 08:56:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Generating and Validating Web Forms With PEAR HTML_QuickForm (part 2)]]></title>
      <guid>http://www.phpdeveloper.org/news/9464</guid>
      <link>http://www.phpdeveloper.org/news/9464</link>
      <description><![CDATA[<p>
The Zend Developer Zone has <a href="http://devzone.zend.com/article/2996-Generating-and-Validating-Web-Forms-With-PEAR-HTML_QuickForm-part-2">released part two</a> of a series (here's <a href="http://www.phpdeveloper.org/news/9023">part one</a> posted back in November) looking at making forms for your website with the help of the PEAR <a href="http://pear.php.net/package/HTML_QuickForm">HTML_QuickForm</a> class.
</p>
<blockquote>
I'll be discussing some of the package's non-standard form elements, teaching you how to combine elements into groups, showing you how to apply templates to control a form's appearance, and guiding you through the process of writing and registering your own custom validation rules.
</blockquote>
<p>
There's plenty of sample code and screenshots to go around in <a href="http://devzone.zend.com/article/2996-Generating-and-Validating-Web-Forms-With-PEAR-HTML_QuickForm-part-2">this second part</a> including examples of form auto-completion, multi-select elements and and example of its integration with Smarty.
</p>]]></description>
      <pubDate>Tue, 22 Jan 2008 07:57:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ed Finkler's Blog: Inspekt 0.3 now available]]></title>
      <guid>http://www.phpdeveloper.org/news/9462</guid>
      <link>http://www.phpdeveloper.org/news/9462</link>
      <description><![CDATA[<p>
<i>Ed Finkler</i> has <a href="http://funkatron.com/index.php/site/comments/inspekt-03-now-available/#When:16:56:00Z">released the latest version</a> of his <a href="http://inspekt.org/">Inspekt</a> input filtering/output validation library for PHP5:
</p>
<blockquote>
I've uploaded the 0.3 release of <a href="http://inspekt.org/">Inspekt</a>, the input filtering and validation library for PHP4 and 5. With this release, Inspekt completes the goals of the original specification for the <a href="https://www.owasp.org/">OWASP</a> <a href="http://www.owasp.org/index.php/OWASP_Spring_Of_Code_2007_Applications#EdFinkler_-_A_comprehensive_input_retrieval.2Ffiltering_system_for_PHP">SpoC007 project</a>. I believe it is ready for "real-world" use.
</blockquote>
<p>
Along with the new code being released there's also <a href="http://funkatron.com/inspekt/user_docs">more documentation</a>, <a href="http://funkatron.com/inspekt/api_docs/">API docs</a>, a <a href="http://pear.funkatron.com/">PEAR channel</a> and a <a href="http://groups.google.com/group/inspekt">mailing list</a>.
</p>]]></description>
      <pubDate>Mon, 21 Jan 2008 14:38:00 -0600</pubDate>
    </item>
  </channel>
</rss>
