<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Proxy Coder &#187; Captcha</title>
	<atom:link href="http://www.proxycoder.com/tag/captcha/feed" rel="self" type="application/rss+xml" />
	<link>http://www.proxycoder.com</link>
	<description>Free Proxy List Script</description>
	<lastBuildDate>Fri, 08 Jan 2010 16:49:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Is Your Captcha Broken ?</title>
		<link>http://www.proxycoder.com/33/tips/is-your-captcha-broken</link>
		<comments>http://www.proxycoder.com/33/tips/is-your-captcha-broken#comments</comments>
		<pubDate>Sat, 26 Sep 2009 06:09:58 +0000</pubDate>
		<dc:creator>Proxy Coder</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Captcha]]></category>

		<guid isPermaLink="false">http://www.proxycoder.com/33/uncategorized/does-your-captcha-broken</guid>
		<description><![CDATA[Is your captcha broken and can not be viewed on your proxy list? There are three possibilities. First, your PHP GD is not activated. Second, your mod_rewrite is not activated. Third, your environment setting. Before checking everything, make sure you &#8230; <a href="http://www.proxycoder.com/33/tips/is-your-captcha-broken">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Is your captcha broken and can not be viewed on your proxy list?<br />
There are three possibilities.<br />
First, your PHP GD is not activated. Second, your mod_rewrite is not activated. Third, your environment setting.<br />
<span id="more-33"></span><br />
Before checking everything, make sure you have uploaded all necessary files and directories (not even a single one should be ignored) :</p>
<ol>
<li>&#8220;<code>/includes/libs/animatedcaptcha_background/</code>&#8220;. It contains the background images for the captcha. On the distribution package, it contains various GIF images.</li>
<li>&#8220;<code>/includes/libs/animatedcaptcha_fonts/</code>&#8220;. It contains various TTF fonts for the captcha.</li>
<li>&#8220;<code>/includes/libs/animatedcaptcha_temp/</code>&#8220;. This seems an empty directory. But still <strong>must</strong> exist. If you use animated captcha (which can be turned on optionally), this directory will be used and must be writable (chmod it to 777 &#8211; but only if you use animated captcha, if you just use the static one, you do not need to chmod it).</li>
<li>&#8220;<code>/includes/libs/animatedcaptcha.class.php</code>&#8220;. It is the core PHP class file for our captcha.</li>
</ol>
<h3>Problem on PHP GD</h3>
<p>To check if the first issue happens, try to save this file into any file on your web hosting and open it from your browser.<br />
If everything is fine, you should see a blue box (it is an image actually), with a text on it.</p>
<div class="alt2" dir="ltr" style="<br />
		margin: 0px;<br />
		padding: 6px;<br />
		border: solid #000000 1px;<br />
		width: 300px;<br />
		height: 498px;<br />
		text-align: left;<br />
		overflow: auto"><br />
		<code style="white-space:nowrap"><br />
&lt;?php<br />
//<br />
// (c) Xrvel.com &amp; ProxyCoder.com<br />
//<br />
// This is just a PHP GD demo to test your environment<br />
// You may delete this file if you want to.<br />
//<br />
if (!isset($_GET['debug'])) {<br />
	header('Content-type: image/gif');<br />
}<br />
$image = imagecreate(300, 60);<br />
$background_color = imagecolorallocate($image, 200, 200, 255);<br />
$text_color = imagecolorallocate($image, 0, 0, 5);<br />
imagefilledrectangle($image, 0, 0, 300, 60, $background_color);<br />
imagestring($image, 20, 30, 10, 'THIS IS JUST A PHP GD DEMO', $text_color);<br />
imagestring($image, 20, 30, 30, date('d-M-Y, H:i:s', time()), $text_color);<br />
imagegif($image);<br />
imagedestroy($image);<br />
?&gt;<br />
</code></div>
<h3>Problem on mod_rewrite</h3>
<p>The captcha is called as a rewritten link. The real URL is &#8220;animatedcaptcha.php&#8221;, but called on the page as &#8220;animatedcaptcha.gif&#8221;.<br />
So try to open &#8220;http://www.yourwebsitehere.com/animatedcaptcha.<strong>gif</strong>&#8220;. Do you get &#8220;404 Not Found&#8221; error?</p>
<ol>
<li>If you get &#8220;404 Not Found&#8221; error, it means your server has not activated the mod_rewrite. Try to open &#8220;http://www.yourwebsitehere.com/animatedcaptcha.<strong>php</strong>&#8221; instead. And if you can see the image now, you have two options :
<ol>
<li>First, ask your webhosting to activate the mod_rewrite.</li>
<li>Second, just use &#8220;animatedcaptcha.<strong>php</strong>&#8221; instead of  &#8220;animatedcaptcha.<strong>gif</strong>&#8220;.</li>
</ol>
</li>
<li>If not, there is no problem on your mod_rewrite.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.proxycoder.com/33/tips/is-your-captcha-broken/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
