<?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>C4 Mídia - Blog &#187; Desenvolvimento</title>
	<atom:link href="http://blog.c4midia.com.br/index.php/tag/desenvolvimento-e-programacao/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.c4midia.com.br</link>
	<description>Projetos pessoais e profissionais de Fabiano e Juliana</description>
	<lastBuildDate>Fri, 03 Feb 2012 17:54:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Corrigir falha do IE6 com PNG transparente.</title>
		<link>http://blog.c4midia.com.br/index.php/corrigir-falha-do-ie6-com-png-transparente/</link>
		<comments>http://blog.c4midia.com.br/index.php/corrigir-falha-do-ie6-com-png-transparente/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 18:22:28 +0000</pubDate>
		<dc:creator>Fabiano Chiaretto</dc:creator>
				<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[PNGFix]]></category>
		<category><![CDATA[Programação]]></category>

		<guid isPermaLink="false">http://blog.c4midia.com.br/?p=70</guid>
		<description><![CDATA[A solução é DD_belatedPNG. Mais informações em http://www.dillerdesign.com/experiment/DD_belatedPNG/ Se você gostou desse post, leia também...SOPA, PIPA e ACTA on January 19th, 2012Teste app iPhone wordpress on January 3rd, 2011Curiosidade - Horário UTC on September 10th, 2009Como mudar a pasta Documents and Settings - Alterar o local on August 17th, 2009Realidade Virtual - Lego Digital Box [...]]]></description>
			<content:encoded><![CDATA[<p>A solução é DD_belatedPNG.</p>
<p>Mais informações em http://www.dillerdesign.com/experiment/DD_belatedPNG/</p>
<div class="postreachclickcomments"><script type="text/javascript" src="http://www.postreach.com/ccengine/display_iframe?perlink=http%3A%2F%2Fblog.c4midia.com.br%2Findex.php%2Fcorrigir-falha-do-ie6-com-png-transparente%2F&amp;url=http%3A%2F%2Fblog.c4midia.com.br"></script></div><div id="ifyoulikedthat"><h3>Se você gostou desse post, leia também...</h3><p><a href="http://blog.c4midia.com.br/index.php/sopa-pipa-acta/">SOPA, PIPA e ACTA</a> on January 19th, 2012</p><p><a href="http://blog.c4midia.com.br/index.php/teste-app-iphone-wordpress/">Teste app iPhone wordpress</a> on January 3rd, 2011</p><p><a href="http://blog.c4midia.com.br/index.php/curiosidade-horario-utc/">Curiosidade  - Horário UTC</a> on September 10th, 2009</p><p><a href="http://blog.c4midia.com.br/index.php/como-mudar-a-pasta-documents-and-settings-alterar-o-local/">Como mudar a pasta Documents and Settings - Alterar o local</a> on August 17th, 2009</p><p><a href="http://blog.c4midia.com.br/index.php/realidade-virtual-lego-digital-box/">Realidade Virtual - Lego Digital Box</a> on April 6th, 2009</p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.c4midia.com.br/index.php/corrigir-falha-do-ie6-com-png-transparente/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tutorial : Como usar a API do Twitter com PHP sem CURL, usando Socket</title>
		<link>http://blog.c4midia.com.br/index.php/tutorial-como-usar-a-api-do-twitter-com-php-sem-curl-usando-socket/</link>
		<comments>http://blog.c4midia.com.br/index.php/tutorial-como-usar-a-api-do-twitter-com-php-sem-curl-usando-socket/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 21:03:17 +0000</pubDate>
		<dc:creator>Fabiano Chiaretto</dc:creator>
				<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://blog.c4midia.com.br/?p=62</guid>
		<description><![CDATA[Alguns servidores geram uma dor de cabeça quando tentamos usar CURL em PHP. Eu testei varias opções e realmente a melhor solução é CURL, mas quando não há outro jeito a solução é POGar. Aqui vai a solução: < ?php //Verifica se os posts não estão vazios e cria as variaveis. if(!empty($_POST["usuario"]))$usuario=$_POST["usuario"]; if(!empty($_POST["senha"])) $senha=$_POST["senha"]; if(!empty($_POST["mensagem"])) [...]]]></description>
			<content:encoded><![CDATA[<p>Alguns servidores geram uma dor de cabeça quando tentamos usar CURL em PHP.<br />
Eu testei varias opções e realmente a melhor solução é CURL, mas quando não há outro jeito a solução é POGar.</p>
<p>Aqui vai a solução:</p>
<pre lang="PHP" line="1" colla="+">

< ?php
//Verifica se os posts não estão vazios e cria as variaveis.
if(!empty($_POST["usuario"]))$usuario=$_POST["usuario"];
if(!empty($_POST["senha"])) $senha=$_POST["senha"];
if(!empty($_POST["mensagem"])) $msg=$_POST["mensagem"];

//Verifica se a mensagem não é vazia e dá inicio a interação
if(!empty($msg)){
$saida = "POST http://twitter.com/statuses/update.json HTTP/1.1\r\n";
$saida .= "Host: twitter.com\r\n";
$saida .= "Authorization: Basic ".base64_encode ($usuario.':'.$senha)."\r\n";
$saida .= "Content-type: application/x-www-form-urlencoded\r\n";
$saida .= "Content-length: ".strlen ("status=$msg")."\r\n";
$saida .= "Connection: Close\r\n\r\n";
$saida .= "status=$msg";

$fp = fsockopen ("twitter.com", 80);
fwrite($fp, $saida);
fclose($fp);
}

?>
<form id="formulario" action="index.php" enctype="multipart/form-data" method="post"> Usuario:
<input id="usuario" name="usuario" type="text" /> Senha:
<input id="senha" name="senha" type="password" /> Mensagem:
<input id="mensagem" maxlength="140" name="mensagem" type="text" />
<input type="submit" value="Postar" />
</form>
</pre>
<p>Update.</p>
<p>Erro grotesssco, quando coloquei o formulário esqueci de tirar meu usuário e senha do twitter.<br />
Valeu pelo aviso.<br />
Mas como fui fazer isso meu deus ?</p>
<div class="postreachclickcomments"><script type="text/javascript" src="http://www.postreach.com/ccengine/display_iframe?perlink=http%3A%2F%2Fblog.c4midia.com.br%2Findex.php%2Ftutorial-como-usar-a-api-do-twitter-com-php-sem-curl-usando-socket%2F&amp;url=http%3A%2F%2Fblog.c4midia.com.br"></script></div><div id="ifyoulikedthat"><h3>Se você gostou desse post, leia também...</h3><p><a href="http://blog.c4midia.com.br/index.php/sopa-pipa-acta/">SOPA, PIPA e ACTA</a> on January 19th, 2012</p><p><a href="http://blog.c4midia.com.br/index.php/teste-app-iphone-wordpress/">Teste app iPhone wordpress</a> on January 3rd, 2011</p><p><a href="http://blog.c4midia.com.br/index.php/curiosidade-horario-utc/">Curiosidade  - Horário UTC</a> on September 10th, 2009</p><p><a href="http://blog.c4midia.com.br/index.php/como-mudar-a-pasta-documents-and-settings-alterar-o-local/">Como mudar a pasta Documents and Settings - Alterar o local</a> on August 17th, 2009</p><p><a href="http://blog.c4midia.com.br/index.php/realidade-virtual-lego-digital-box/">Realidade Virtual - Lego Digital Box</a> on April 6th, 2009</p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.c4midia.com.br/index.php/tutorial-como-usar-a-api-do-twitter-com-php-sem-curl-usando-socket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

