<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Tutorial: Using Zend_Captcha_Image</title>
	<atom:link href="http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/</link>
	<description>Web 8.0 Development</description>
	<lastBuildDate>Mon, 08 Mar 2010 06:30:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Igor Wiedler</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-2307</link>
		<dc:creator>Igor Wiedler</dc:creator>
		<pubDate>Tue, 01 Dec 2009 17:05:19 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-2307</guid>
		<description>PHP_SELF should really not be used, it is vulnerable to XSS. Instead, SCRIPT_NAME should be used.</description>
		<content:encoded><![CDATA[<p>PHP_SELF should really not be used, it is vulnerable to XSS. Instead, SCRIPT_NAME should be used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Виталий</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-2009</link>
		<dc:creator>Виталий</dc:creator>
		<pubDate>Tue, 28 Jul 2009 18:34:50 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-2009</guid>
		<description>А это Вы написали на основе исключительно Вашего личного опыта?</description>
		<content:encoded><![CDATA[<p>А это Вы написали на основе исключительно Вашего личного опыта?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Словарь Юриста</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-2004</link>
		<dc:creator>Словарь Юриста</dc:creator>
		<pubDate>Thu, 23 Jul 2009 23:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-2004</guid>
		<description>списки кандидатов, выдвигаемые партиями политическими и избирательными объединениями (блоками) на выборах в представительные органы, проводимые сообразно пропорциональной избирательной системе.</description>
		<content:encoded><![CDATA[<p>списки кандидатов, выдвигаемые партиями политическими и избирательными объединениями (блоками) на выборах в представительные органы, проводимые сообразно пропорциональной избирательной системе.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vietanhit</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-1955</link>
		<dc:creator>vietanhit</dc:creator>
		<pubDate>Fri, 17 Jul 2009 20:04:06 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-1955</guid>
		<description>I’ve solved the problem, replace

‘font’ =&gt; $baseUrl . ‘/img/arial.ttf’,
‘imgDir’ =&gt; $baseUrl . ‘/img/’,
‘imgUrl’ =&gt; ‘http://project.com/captcha/’,

with this:

‘font’ =&gt; “./img/arial.ttf”,
‘imgdir’ =&gt; “./img”,
‘imgurl’ =&gt; “./img”

Don’t want to use $baseUrl .
Thanks this tutorial ! :)</description>
		<content:encoded><![CDATA[<p>I’ve solved the problem, replace</p>
<p>‘font’ =&gt; $baseUrl . ‘/img/arial.ttf’,<br />
‘imgDir’ =&gt; $baseUrl . ‘/img/’,<br />
‘imgUrl’ =&gt; ‘http://project.com/captcha/’,</p>
<p>with this:</p>
<p>‘font’ =&gt; “./img/arial.ttf”,<br />
‘imgdir’ =&gt; “./img”,<br />
‘imgurl’ =&gt; “./img”</p>
<p>Don’t want to use $baseUrl .<br />
Thanks this tutorial ! <img src='http://blog.sankhomallik.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vietanhit</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-1951</link>
		<dc:creator>vietanhit</dc:creator>
		<pubDate>Fri, 17 Jul 2009 11:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-1951</guid>
		<description>I&#039;m getting the same errors (like kumar):

Warning: imageftbbox() [function.imageftbbox]: Invalid font filename in C:\wamp\www\Zend_Framework\zf_captcha\library\Zend\Captcha\Image.php on line 489

Warning: imagefttext() [function.imagefttext]: Invalid font filename in C:\wamp\www\Zend_Framework\zf_captcha\library\Zend\Captcha\Image.php on line 492

Warning: imagepng() [function.imagepng]: Unable to open &#039;/Zend_Framework/zf_captcha/public/img/ffa6e2ec474d49875ff2b131806c704c.png&#039; for writing: No such file or directory in C:\wamp\www\Zend_Framework\zf_captcha\library\Zend\Captcha\Image.php on line 563</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting the same errors (like kumar):</p>
<p>Warning: imageftbbox() [function.imageftbbox]: Invalid font filename in C:\wamp\www\Zend_Framework\zf_captcha\library\Zend\Captcha\Image.php on line 489</p>
<p>Warning: imagefttext() [function.imagefttext]: Invalid font filename in C:\wamp\www\Zend_Framework\zf_captcha\library\Zend\Captcha\Image.php on line 492</p>
<p>Warning: imagepng() [function.imagepng]: Unable to open &#8216;/Zend_Framework/zf_captcha/public/img/ffa6e2ec474d49875ff2b131806c704c.png&#8217; for writing: No such file or directory in C:\wamp\www\Zend_Framework\zf_captcha\library\Zend\Captcha\Image.php on line 563</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-1941</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Wed, 15 Jul 2009 09:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-1941</guid>
		<description>Thanks, this helped me a lot more than the Zend docs :)</description>
		<content:encoded><![CDATA[<p>Thanks, this helped me a lot more than the Zend docs <img src='http://blog.sankhomallik.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: бaкинeц</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-1868</link>
		<dc:creator>бaкинeц</dc:creator>
		<pubDate>Thu, 09 Jul 2009 15:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-1868</guid>
		<description>Где-то я уже  аналогичное читал, причём практически слово в слово... :)</description>
		<content:encoded><![CDATA[<p>Где-то я уже  аналогичное читал, причём практически слово в слово&#8230; <img src='http://blog.sankhomallik.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zend Framework Captcha &#124; amptools</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-1676</link>
		<dc:creator>Zend Framework Captcha &#124; amptools</dc:creator>
		<pubDate>Wed, 24 Jun 2009 19:21:36 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-1676</guid>
		<description>[...] posts, I don&#8217;t think google is catching them. I did find some useful code on this blog, sankhomalik&#8217;s tutorial on using the zend image captcha. It does make some decent notes, so please go read this post first (and thank him, cause so far he [...]</description>
		<content:encoded><![CDATA[<p>[...] posts, I don&#8217;t think google is catching them. I did find some useful code on this blog, sankhomalik&#8217;s tutorial on using the zend image captcha. It does make some decent notes, so please go read this post first (and thank him, cause so far he [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sankho</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-1555</link>
		<dc:creator>sankho</dc:creator>
		<pubDate>Sun, 31 May 2009 23:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-1555</guid>
		<description>Kumar,

Those errors are occurring because you haven&#039;t downloaded a .ttf font file for the Captcha generator to use, and you haven&#039;t made a directory for the images to be created and visible to the public. When I wrote in &quot;/path/to/your/fontFile.ttf&quot; I literally meant the path to YOUR font file - not mine. That&#039;s some code you need to write in yourself.

So go download a .ttf file somewhere, and place it in a directory on your server, then point to that file in the code. Then, create a folder underneath your site&#039;s root directory and chmod it to 775 so it&#039;s writeable by the server + others can view it.

Hope this makes sense... pretty standard stuff you&#039;re gonna have to learn how to do if you haven&#039;t yet.</description>
		<content:encoded><![CDATA[<p>Kumar,</p>
<p>Those errors are occurring because you haven&#8217;t downloaded a .ttf font file for the Captcha generator to use, and you haven&#8217;t made a directory for the images to be created and visible to the public. When I wrote in &#8220;/path/to/your/fontFile.ttf&#8221; I literally meant the path to YOUR font file &#8211; not mine. That&#8217;s some code you need to write in yourself.</p>
<p>So go download a .ttf file somewhere, and place it in a directory on your server, then point to that file in the code. Then, create a folder underneath your site&#8217;s root directory and chmod it to 775 so it&#8217;s writeable by the server + others can view it.</p>
<p>Hope this makes sense&#8230; pretty standard stuff you&#8217;re gonna have to learn how to do if you haven&#8217;t yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kumar</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-1500</link>
		<dc:creator>kumar</dc:creator>
		<pubDate>Fri, 29 May 2009 05:18:22 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-1500</guid>
		<description>getting these errors</description>
		<content:encoded><![CDATA[<p>getting these errors</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kumar</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-1499</link>
		<dc:creator>kumar</dc:creator>
		<pubDate>Fri, 29 May 2009 05:17:13 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-1499</guid>
		<description>Warning: imageftbbox() [function.imageftbbox]: Invalid font filename in C:\wamp\www\tribarter\library\Zend\Captcha\Image.php on line 483

Warning: imagefttext() [function.imagefttext]: Invalid font filename in C:\wamp\www\tribarter\library\Zend\Captcha\Image.php on line 486

Warning: imagepng() [function.imagepng]: Unable to open &#039;images/captcha/604ac905d0fff65dbb081c97b9ece8b7.png&#039; for writing: No such file or directory in C:\wamp\www\tribarter\library\Zend\Captcha\Image.php on line 557</description>
		<content:encoded><![CDATA[<p>Warning: imageftbbox() [function.imageftbbox]: Invalid font filename in C:\wamp\www\tribarter\library\Zend\Captcha\Image.php on line 483</p>
<p>Warning: imagefttext() [function.imagefttext]: Invalid font filename in C:\wamp\www\tribarter\library\Zend\Captcha\Image.php on line 486</p>
<p>Warning: imagepng() [function.imagepng]: Unable to open &#8216;images/captcha/604ac905d0fff65dbb081c97b9ece8b7.png&#8217; for writing: No such file or directory in C:\wamp\www\tribarter\library\Zend\Captcha\Image.php on line 557</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sankho</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-1345</link>
		<dc:creator>sankho</dc:creator>
		<pubDate>Thu, 30 Apr 2009 05:20:43 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-1345</guid>
		<description>Johnny, 

I&#039;ll try to write an article on developing under an MVC environment soon.

Basically, it&#039;s largely a custodial thing. But if you stay with an app for log enough, MVC becomes more valuable as your site starts to requires consistent change. And of course, change is a consistent thing for the web.  

It&#039;s also great if you need others to edit your code later on; it decreases the learning curve required to get comfortable with someone else&#039;s code.

I&#039;ll try and shoot you an email when I get around to writing this article. Thanks for the comment and request!</description>
		<content:encoded><![CDATA[<p>Johnny, </p>
<p>I&#8217;ll try to write an article on developing under an MVC environment soon.</p>
<p>Basically, it&#8217;s largely a custodial thing. But if you stay with an app for log enough, MVC becomes more valuable as your site starts to requires consistent change. And of course, change is a consistent thing for the web.  </p>
<p>It&#8217;s also great if you need others to edit your code later on; it decreases the learning curve required to get comfortable with someone else&#8217;s code.</p>
<p>I&#8217;ll try and shoot you an email when I get around to writing this article. Thanks for the comment and request!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sankho</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-1344</link>
		<dc:creator>sankho</dc:creator>
		<pubDate>Thu, 30 Apr 2009 05:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-1344</guid>
		<description>Neller, I believe I understand what you are saying, and there&#039;s a fairly easy fix to this - I should of realized this possibility earlier. Thanks for commenting!

In line 5 of my example function validateCaptcha, we instantiate the PHP session created by the captcha on your server earlier, in the previous generateCaptcha function. To access the correct PHP session, we need the $captcha array sent through the POST - but you took it away. 

Since we can&#039;t access the session, we can&#039;t get the correct word, and the variable representing this - $captchaWord - ultimately ends up with a null value.

The value for $captchaInput also becomes null. Yep - it&#039;s because it was held in the removed $captcha array.

So then, in the last step of the function, it checks if $captchaInput and $captchaWord are equal - and they are. They&#039;ve both become null.

I&#039;m rewriting that step with a quick fix for this. If the session isn&#039;t found, the function returns false. This should lock down the Captcha. Test it out and let me know!</description>
		<content:encoded><![CDATA[<p>Neller, I believe I understand what you are saying, and there&#8217;s a fairly easy fix to this &#8211; I should of realized this possibility earlier. Thanks for commenting!</p>
<p>In line 5 of my example function validateCaptcha, we instantiate the PHP session created by the captcha on your server earlier, in the previous generateCaptcha function. To access the correct PHP session, we need the $captcha array sent through the POST &#8211; but you took it away. </p>
<p>Since we can&#8217;t access the session, we can&#8217;t get the correct word, and the variable representing this &#8211; $captchaWord &#8211; ultimately ends up with a null value.</p>
<p>The value for $captchaInput also becomes null. Yep &#8211; it&#8217;s because it was held in the removed $captcha array.</p>
<p>So then, in the last step of the function, it checks if $captchaInput and $captchaWord are equal &#8211; and they are. They&#8217;ve both become null.</p>
<p>I&#8217;m rewriting that step with a quick fix for this. If the session isn&#8217;t found, the function returns false. This should lock down the Captcha. Test it out and let me know!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-1343</link>
		<dc:creator>Andrey</dc:creator>
		<pubDate>Tue, 28 Apr 2009 07:36:47 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-1343</guid>
		<description>Thanks for your help!</description>
		<content:encoded><![CDATA[<p>Thanks for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kuban</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-1342</link>
		<dc:creator>Kuban</dc:creator>
		<pubDate>Sun, 26 Apr 2009 17:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-1342</guid>
		<description>Thank you! Very informative article!</description>
		<content:encoded><![CDATA[<p>Thank you! Very informative article!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Мальдивские острова</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-1244</link>
		<dc:creator>Мальдивские острова</dc:creator>
		<pubDate>Sun, 19 Apr 2009 19:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-1244</guid>
		<description>The interesting information. Thanks</description>
		<content:encoded><![CDATA[<p>The interesting information. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: annombpreepay</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-584</link>
		<dc:creator>annombpreepay</dc:creator>
		<pubDate>Fri, 03 Apr 2009 11:54:27 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-584</guid>
		<description>проба пера</description>
		<content:encoded><![CDATA[<p>проба пера</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neller</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-389</link>
		<dc:creator>Neller</dc:creator>
		<pubDate>Thu, 26 Mar 2009 11:28:18 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-389</guid>
		<description>Hi, great tutorial.

I have everything working fine however I&#039;m wondering how secure this way is?

For example if someone edited the $_POST variable before it hits the website and removes 1 of the inputs (for example - name=&quot;captcha[id]&quot;)

Then when it hits the server it triggers (Undefined index: input ) and the captcha validates even if the codes dont match due to the error .

Hope that makes sense.</description>
		<content:encoded><![CDATA[<p>Hi, great tutorial.</p>
<p>I have everything working fine however I&#8217;m wondering how secure this way is?</p>
<p>For example if someone edited the $_POST variable before it hits the website and removes 1 of the inputs (for example &#8211; name=&#8221;captcha[id]&#8220;)</p>
<p>Then when it hits the server it triggers (Undefined index: input ) and the captcha validates even if the codes dont match due to the error .</p>
<p>Hope that makes sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Santyago</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-268</link>
		<dc:creator>Santyago</dc:creator>
		<pubDate>Thu, 19 Mar 2009 08:12:35 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-268</guid>
		<description>Спасибо! У Вас часто появляются очень интересные посты! Однако я бы убрал пару тройку фраз.</description>
		<content:encoded><![CDATA[<p>Спасибо! У Вас часто появляются очень интересные посты! Однако я бы убрал пару тройку фраз.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BeginZend</title>
		<link>http://blog.sankhomallik.com/2008/12/17/tutorial-using-zend_captcha_image/comment-page-1/#comment-175</link>
		<dc:creator>BeginZend</dc:creator>
		<pubDate>Sat, 07 Mar 2009 09:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://sankhomallik.com/?p=33#comment-175</guid>
		<description>The Zend tutorial was usefull. But is it possible that you can send me the MVC standards. I&#039;m sorta struggling over here with the arrangement. Hope you can help me out. thanks</description>
		<content:encoded><![CDATA[<p>The Zend tutorial was usefull. But is it possible that you can send me the MVC standards. I&#8217;m sorta struggling over here with the arrangement. Hope you can help me out. thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
