<?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, 23 May 2013 16:06:33 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sankho Mallik's Blog: Tutorial: Using Zend_Captcha_Image]]></title>
      <guid>http://www.phpdeveloper.org/news/11605</guid>
      <link>http://www.phpdeveloper.org/news/11605</link>
      <description><![CDATA[<p>
In a <a href="http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/">recent post</a> to his blog <i>Sankho Mallik</i> has posted a quick tutorial on using the Zend_Captcha component of the Zend Framework in your forms.
</p>
<blockquote>
Zend Framework has a set of great classes included to take away a lot of the headaches involved with setting up a CAPTCHA system. The one I use is Zend_Captcha_Image, which creates an image for you and sets up a Session so you will be able to validate all information appropriately. Problem is, there's little documentation out there on this. [...] I'll show you everything you need to know to use Zend_Captcha_Image WITHOUT Zend_Form! If you'd like to learn the implementation using Zend_Form, please visit <a href="http://robertbasic.com/blog/a-zend-captcha-example">Robert Basic's Blog</a>.
</blockquote>
<p>
He follows the steps you'll need to get the component set up - checking for GD installation, making the CAPTCHA image folder - and includes some sample code in the form of a generateCaptcha and validateCaptcha methods to make it all work.
</p>]]></description>
      <pubDate>Fri, 19 Dec 2008 13:36:18 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Robert Basic's Blog: A Zend_Captcha example]]></title>
      <guid>http://www.phpdeveloper.org/news/11278</guid>
      <link>http://www.phpdeveloper.org/news/11278</link>
      <description><![CDATA[<p>
<i>Robert Basic</i> found the creation of a CAPTCHA with the Zend_Captcha and Zend_Form components of the <a href="http://framework.zend.com">Zend Framework</a> "a bit tricky" and decided to <a href="http://robertbasic.com/blog/2008/10/22/a-zend-captcha-example/">share an example</a> he's come up with to help others out there.
</p>
<blockquote>
I'll just show a quick example how to implement Zend_Captcha into a Zend_Form, may be useful for someone. There are several CAPTCHA types in ZF, like the Image, Figlet and Dumb. I use Image.
</blockquote>
<p>
He includes the code for his form where the CAPTCHA component is configured to use a certain directories for the location to put the images, the font to use, and the label to put on it. He sets up the action for it and creates a captchaAction method in the same controller. This does the validation on the entered term to ensure that it matches the string in the image exactly.
</p>]]></description>
      <pubDate>Thu, 23 Oct 2008 10:27:17 -0500</pubDate>
    </item>
  </channel>
</rss>
