<?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: Formulário seguro com código em imagem</title>
	<atom:link href="http://www.phpgratis.com.br/seguranca/formulario-com-imagem-e-codigo-de-seguranca/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpgratis.com.br/seguranca/formulario-com-imagem-e-codigo-de-seguranca/</link>
	<description>scripts e conteúdos gratuitos</description>
	<lastBuildDate>Wed, 08 Dec 2010 12:09:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Poletinho</title>
		<link>http://www.phpgratis.com.br/seguranca/formulario-com-imagem-e-codigo-de-seguranca/comment-page-1/#comment-182</link>
		<dc:creator>Poletinho</dc:creator>
		<pubDate>Mon, 09 Jun 2008 18:01:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpgratis.com.br/seguranca/formulario-com-imagem-e-codigo-de-seguranca/#comment-182</guid>
		<description>Tente o seguinte você apenas copia a monofont para dentro do seu diretório de website. Se estiver usando &quot;include&quot; para chamar a página para alguma que esta fora do seu diretório padrão do form.php coloque onde esta à página que esta chamando o form.</description>
		<content:encoded><![CDATA[<p>Tente o seguinte você apenas copia a monofont para dentro do seu diretório de website. Se estiver usando &#8220;include&#8221; para chamar a página para alguma que esta fora do seu diretório padrão do form.php coloque onde esta à página que esta chamando o form.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.phpgratis.com.br/seguranca/formulario-com-imagem-e-codigo-de-seguranca/comment-page-1/#comment-88</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 09 Aug 2007 19:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpgratis.com.br/seguranca/formulario-com-imagem-e-codigo-de-seguranca/#comment-88</guid>
		<description>teste</description>
		<content:encoded><![CDATA[<p>teste</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Israel</title>
		<link>http://www.phpgratis.com.br/seguranca/formulario-com-imagem-e-codigo-de-seguranca/comment-page-1/#comment-13</link>
		<dc:creator>Israel</dc:creator>
		<pubDate>Sat, 07 Apr 2007 21:54:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpgratis.com.br/seguranca/formulario-com-imagem-e-codigo-de-seguranca/#comment-13</guid>
		<description>Olá, estou com problemas de span em meu site. Baixei o codigo proposto, mas não funcionou, primeiro pede para declarar a função &quot;imagettfbbox&quot;, eu declarei, até ai tudo bem, a imagem apareceu mas agora não consigo fazer os caracteres aparecerem.

Veja o codigo:
&lt;code&gt;
generateCode($characters);
		/* font size will be 75% of the image height */
		$font_size = $height * 0.75;
		$image = @imagecreate($width, $height) or die(&#039;Cannot initialize new GD image stream&#039;);
		/* set the colours */
		$background_color = imagecolorallocate($image, 255, 255, 255);
		$text_color = imagecolorallocate($image, 20, 40, 100);
		$noise_color = imagecolorallocate($image, 100, 120, 180);
		/* generate random dots in background */
		for( $i=0; $ifont, $code) or die(&#039;Error in imagettfbbox function&#039;);
		$x = ($width - $textbox[4])/2;
		$y = ($height - $textbox[5])/2;
		imagettftext($image, $font_size, 0, $x, $y, $text_color, $this-&gt;font , $code) or die(&#039;Error in imagettftext function&#039;);
        }
	/* output captcha image to browser */
		header(&#039;Content-Type: image/jpeg&#039;);
		imagejpeg($image);
		imagedestroy($image);
		$_SESSION[&#039;security_code&#039;] = $code;
	}

}

$width = isset($_GET[&#039;width&#039;]) ? $_GET[&#039;width&#039;] : &#039;120&#039;;
$height = isset($_GET[&#039;height&#039;]) ? $_GET[&#039;height&#039;] : &#039;40&#039;;
$characters = isset($_GET[&#039;characters&#039;]) &amp;&amp; $_GET[&#039;characters&#039;] &gt; 1 ? $_GET[&#039;characters&#039;] : &#039;6&#039;;

$captcha = new CaptchaSecurityImages($width,$height,$characters);

?&gt;
&lt;/code&gt;

Fui a pagina do desenvolvedor, mas não obtive respostas.
Alguém poderia me esclarecer o porque do erro.

Obrigado</description>
		<content:encoded><![CDATA[<p>Olá, estou com problemas de span em meu site. Baixei o codigo proposto, mas não funcionou, primeiro pede para declarar a função &#8220;imagettfbbox&#8221;, eu declarei, até ai tudo bem, a imagem apareceu mas agora não consigo fazer os caracteres aparecerem.</p>
<p>Veja o codigo:<br />
<code><br />
generateCode($characters);<br />
		/* font size will be 75% of the image height */<br />
		$font_size = $height * 0.75;<br />
		$image = @imagecreate($width, $height) or die('Cannot initialize new GD image stream');<br />
		/* set the colours */<br />
		$background_color = imagecolorallocate($image, 255, 255, 255);<br />
		$text_color = imagecolorallocate($image, 20, 40, 100);<br />
		$noise_color = imagecolorallocate($image, 100, 120, 180);<br />
		/* generate random dots in background */<br />
		for( $i=0; $ifont, $code) or die('Error in imagettfbbox function');<br />
		$x = ($width - $textbox[4])/2;<br />
		$y = ($height - $textbox[5])/2;<br />
		imagettftext($image, $font_size, 0, $x, $y, $text_color, $this-&gt;font , $code) or die('Error in imagettftext function');<br />
        }<br />
	/* output captcha image to browser */<br />
		header('Content-Type: image/jpeg');<br />
		imagejpeg($image);<br />
		imagedestroy($image);<br />
		$_SESSION['security_code'] = $code;<br />
	}</p>
<p>}</p>
<p>$width = isset($_GET['width']) ? $_GET['width'] : '120';<br />
$height = isset($_GET['height']) ? $_GET['height'] : '40';<br />
$characters = isset($_GET['characters']) &amp;&amp; $_GET['characters'] &gt; 1 ? $_GET['characters'] : '6';</p>
<p>$captcha = new CaptchaSecurityImages($width,$height,$characters);</p>
<p>?&gt;<br />
</code></p>
<p>Fui a pagina do desenvolvedor, mas não obtive respostas.<br />
Alguém poderia me esclarecer o porque do erro.</p>
<p>Obrigado</p>
]]></content:encoded>
	</item>
</channel>
</rss>

