<?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>SpotGeek.net &#187; PHP</title>
	<atom:link href="http://spotgeek.net/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://spotgeek.net</link>
	<description>Tecnologia , Programação , web , internet, php</description>
	<lastBuildDate>Fri, 02 Jul 2010 10:12:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>PHP &#8211; 50 dicas sobre desempenho e segurança</title>
		<link>http://spotgeek.net/php-50-dicas-sobre-desempenho-e-seguranca/</link>
		<comments>http://spotgeek.net/php-50-dicas-sobre-desempenho-e-seguranca/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 23:50:44 +0000</pubDate>
		<dc:creator>Filipe Teixeira Nunes</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[segurança]]></category>

		<guid isPermaLink="false">http://spotgeek.net/?p=664</guid>
		<description><![CDATA[﻿ 50 boas dicas de como utilizar bem o php. Share and enjoy:]]></description>
			<content:encoded><![CDATA[<p>﻿</p>
<p><a href="http://pplware.sapo.pt/tutoriais/php-e-a-quinta-feira-50-dicas-sobre-desempenho-e-segurana/" target="_blank">50 boas dicas de como utilizar bem o php.</a></p>
<p><a href="http://spotgeek.net/wp-content/uploads/2010/06/peluchephp.jpg" title="peluchephp" rel="lightbox[664]"><img class="alignleft size-full wp-image-665" title="peluchephp" src="http://spotgeek.net/wp-content/uploads/2010/06/peluchephp.jpg" alt="" width="424" height="318" /></a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fphp-50-dicas-sobre-desempenho-e-seguranca%2F&amp;partner=sociable" title="Print"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fspotgeek.net%2Fphp-50-dicas-sobre-desempenho-e-seguranca%2F&amp;title=PHP%20-%2050%20dicas%20sobre%20desempenho%20e%20seguran%C3%A7a&amp;bodytext=%EF%BB%BF%0D%0A%0D%0A50%20boas%20dicas%20de%20como%20utilizar%20bem%20o%20php.%0D%0A%0D%0A" title="Digg"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fspotgeek.net%2Fphp-50-dicas-sobre-desempenho-e-seguranca%2F" title="Sphinn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fspotgeek.net%2Fphp-50-dicas-sobre-desempenho-e-seguranca%2F&amp;title=PHP%20-%2050%20dicas%20sobre%20desempenho%20e%20seguran%C3%A7a&amp;notes=%EF%BB%BF%0D%0A%0D%0A50%20boas%20dicas%20de%20como%20utilizar%20bem%20o%20php.%0D%0A%0D%0A" title="del.icio.us"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fspotgeek.net%2Fphp-50-dicas-sobre-desempenho-e-seguranca%2F&amp;t=PHP%20-%2050%20dicas%20sobre%20desempenho%20e%20seguran%C3%A7a" title="Facebook"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fspotgeek.net%2Fphp-50-dicas-sobre-desempenho-e-seguranca%2F&amp;title=PHP%20-%2050%20dicas%20sobre%20desempenho%20e%20seguran%C3%A7a" title="Mixx"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fspotgeek.net%2Fphp-50-dicas-sobre-desempenho-e-seguranca%2F&amp;title=PHP%20-%2050%20dicas%20sobre%20desempenho%20e%20seguran%C3%A7a&amp;annotation=%EF%BB%BF%0D%0A%0D%0A50%20boas%20dicas%20de%20como%20utilizar%20bem%20o%20php.%0D%0A%0D%0A" title="Google Bookmarks"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fspotgeek.net%2Fphp-50-dicas-sobre-desempenho-e-seguranca%2F&amp;title=PHP%20-%2050%20dicas%20sobre%20desempenho%20e%20seguran%C3%A7a&amp;source=SpotGeek.net+Tecnologia+%2C+Programa%C3%A7%C3%A3o+%2C+web+%2C+internet%2C+php&amp;summary=%EF%BB%BF%0D%0A%0D%0A50%20boas%20dicas%20de%20como%20utilizar%20bem%20o%20php.%0D%0A%0D%0A" title="LinkedIn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.netvibes.com/share?title=PHP%20-%2050%20dicas%20sobre%20desempenho%20e%20seguran%C3%A7a&amp;url=http%3A%2F%2Fspotgeek.net%2Fphp-50-dicas-sobre-desempenho-e-seguranca%2F" title="Netvibes"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fphp-50-dicas-sobre-desempenho-e-seguranca%2F&amp;partner=sociable" title="PDF"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://spotgeek.net/feed/" title="RSS"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=PHP%20-%2050%20dicas%20sobre%20desempenho%20e%20seguran%C3%A7a&amp;url=http%3A%2F%2Fspotgeek.net%2Fphp-50-dicas-sobre-desempenho-e-seguranca%2F" title="Slashdot"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fspotgeek.net%2Fphp-50-dicas-sobre-desempenho-e-seguranca%2F&amp;title=PHP%20-%2050%20dicas%20sobre%20desempenho%20e%20seguran%C3%A7a" title="StumbleUpon"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=PHP%20-%2050%20dicas%20sobre%20desempenho%20e%20seguran%C3%A7a%20-%20http%3A%2F%2Fspotgeek.net%2Fphp-50-dicas-sobre-desempenho-e-seguranca%2F" title="Twitter"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://spotgeek.net/php-50-dicas-sobre-desempenho-e-seguranca/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>checklist de segurança no php</title>
		<link>http://spotgeek.net/checklist-de-seguranca-no-php/</link>
		<comments>http://spotgeek.net/checklist-de-seguranca-no-php/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 09:00:07 +0000</pubDate>
		<dc:creator>Filipe Teixeira Nunes</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[segurança]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[lamp]]></category>

		<guid isPermaLink="false">http://spotgeek.net/?p=539</guid>
		<description><![CDATA[Ao configurar o php é necessário ter em atenção alguns aspectos de segurança. ; php.ini allow_url_fopen = Off ; Disable URLs for file handling functions register_globals = Off ; Make sure this hellish fiend is dead open_basedir = /var/www/htdocs/files ; Restrict file handling functions to a subdirectory safe_mode = Off ; Disable this, the next [...]]]></description>
			<content:encoded><![CDATA[<p>Ao configurar o php é necessário ter em atenção alguns aspectos de segurança.</p>
<p>; php.ini<br />
allow_url_fopen = Off ; Disable URLs for file handling functions</p>
<p>register_globals = Off ; Make sure this hellish fiend is dead</p>
<p>open_basedir = /var/www/htdocs/files ; Restrict file handling functions to a subdirectory</p>
<p>safe_mode = Off      ; Disable this, the next is often more practical<br />
safe_mode_gid = On   ; Enable safe mode with group check<br />
safe_mode_exec_dir = /var/www/binaries ; Restrict execution functions to this directory<br />
safe_mode_allowed_env_vars = PHP_      ; Restrict access to environment variables</p>
<p>max_execution_time = 30  ; Max script execution time<br />
max_input_time = 60      ; Max time spent parsing inputs<br />
memory_limit = 16M       ; Max memory size used by one script<br />
upload_max_filesize = 2M ; Max upload file size<br />
post_max_size = 8M       ; Max post size</p>
<p>display_errors = Off ; Do not show errors on screen</p>
<p>log_errors = On      ; Log errors to log file</p>
<p>expose_php = Off ; Hide presence of PHP</p>
<p># Apache configuration or .htaccess<br />
<FilesMatch "\.(inc|.*sql|.*~)$"><br />
  Order allow,deny<br />
  Deny from all<br />
</FilesMatch></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fchecklist-de-seguranca-no-php%2F&amp;partner=sociable" title="Print"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fspotgeek.net%2Fchecklist-de-seguranca-no-php%2F&amp;title=checklist%20de%20seguran%C3%A7a%20no%20php&amp;bodytext=Ao%20configurar%20o%20php%20%C3%A9%20necess%C3%A1rio%20ter%20em%20aten%C3%A7%C3%A3o%20alguns%20aspectos%20de%20seguran%C3%A7a.%0D%0A%0D%0A%0D%0A%3B%20php.ini%0D%0Aallow_url_fopen%20%3D%20Off%20%3B%20Disable%20URLs%20for%20file%20handling%20functions%0D%0A%20%0D%0Aregister_globals%20%3D%20Off%20%3B%20Make%20sure%20this%20hellish%20fiend%20is%20dead%0D%0A%20%0D%0Aopen_basedir%20%3D%20%2F" title="Digg"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fspotgeek.net%2Fchecklist-de-seguranca-no-php%2F" title="Sphinn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fspotgeek.net%2Fchecklist-de-seguranca-no-php%2F&amp;title=checklist%20de%20seguran%C3%A7a%20no%20php&amp;notes=Ao%20configurar%20o%20php%20%C3%A9%20necess%C3%A1rio%20ter%20em%20aten%C3%A7%C3%A3o%20alguns%20aspectos%20de%20seguran%C3%A7a.%0D%0A%0D%0A%0D%0A%3B%20php.ini%0D%0Aallow_url_fopen%20%3D%20Off%20%3B%20Disable%20URLs%20for%20file%20handling%20functions%0D%0A%20%0D%0Aregister_globals%20%3D%20Off%20%3B%20Make%20sure%20this%20hellish%20fiend%20is%20dead%0D%0A%20%0D%0Aopen_basedir%20%3D%20%2F" title="del.icio.us"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fspotgeek.net%2Fchecklist-de-seguranca-no-php%2F&amp;t=checklist%20de%20seguran%C3%A7a%20no%20php" title="Facebook"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fspotgeek.net%2Fchecklist-de-seguranca-no-php%2F&amp;title=checklist%20de%20seguran%C3%A7a%20no%20php" title="Mixx"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fspotgeek.net%2Fchecklist-de-seguranca-no-php%2F&amp;title=checklist%20de%20seguran%C3%A7a%20no%20php&amp;annotation=Ao%20configurar%20o%20php%20%C3%A9%20necess%C3%A1rio%20ter%20em%20aten%C3%A7%C3%A3o%20alguns%20aspectos%20de%20seguran%C3%A7a.%0D%0A%0D%0A%0D%0A%3B%20php.ini%0D%0Aallow_url_fopen%20%3D%20Off%20%3B%20Disable%20URLs%20for%20file%20handling%20functions%0D%0A%20%0D%0Aregister_globals%20%3D%20Off%20%3B%20Make%20sure%20this%20hellish%20fiend%20is%20dead%0D%0A%20%0D%0Aopen_basedir%20%3D%20%2F" title="Google Bookmarks"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fspotgeek.net%2Fchecklist-de-seguranca-no-php%2F&amp;title=checklist%20de%20seguran%C3%A7a%20no%20php&amp;source=SpotGeek.net+Tecnologia+%2C+Programa%C3%A7%C3%A3o+%2C+web+%2C+internet%2C+php&amp;summary=Ao%20configurar%20o%20php%20%C3%A9%20necess%C3%A1rio%20ter%20em%20aten%C3%A7%C3%A3o%20alguns%20aspectos%20de%20seguran%C3%A7a.%0D%0A%0D%0A%0D%0A%3B%20php.ini%0D%0Aallow_url_fopen%20%3D%20Off%20%3B%20Disable%20URLs%20for%20file%20handling%20functions%0D%0A%20%0D%0Aregister_globals%20%3D%20Off%20%3B%20Make%20sure%20this%20hellish%20fiend%20is%20dead%0D%0A%20%0D%0Aopen_basedir%20%3D%20%2F" title="LinkedIn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.netvibes.com/share?title=checklist%20de%20seguran%C3%A7a%20no%20php&amp;url=http%3A%2F%2Fspotgeek.net%2Fchecklist-de-seguranca-no-php%2F" title="Netvibes"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fchecklist-de-seguranca-no-php%2F&amp;partner=sociable" title="PDF"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://spotgeek.net/feed/" title="RSS"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=checklist%20de%20seguran%C3%A7a%20no%20php&amp;url=http%3A%2F%2Fspotgeek.net%2Fchecklist-de-seguranca-no-php%2F" title="Slashdot"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fspotgeek.net%2Fchecklist-de-seguranca-no-php%2F&amp;title=checklist%20de%20seguran%C3%A7a%20no%20php" title="StumbleUpon"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=checklist%20de%20seguran%C3%A7a%20no%20php%20-%20http%3A%2F%2Fspotgeek.net%2Fchecklist-de-seguranca-no-php%2F" title="Twitter"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://spotgeek.net/checklist-de-seguranca-no-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sapo sessions php</title>
		<link>http://spotgeek.net/sapo-sessions-php/</link>
		<comments>http://spotgeek.net/sapo-sessions-php/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 16:31:48 +0000</pubDate>
		<dc:creator>Filipe Teixeira Nunes</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[programação]]></category>
		<category><![CDATA[pt]]></category>
		<category><![CDATA[sapo]]></category>
		<category><![CDATA[sessions]]></category>
		<category><![CDATA[smarty]]></category>
		<category><![CDATA[xDebug]]></category>

		<guid isPermaLink="false">http://spotgeek.net/?p=489</guid>
		<description><![CDATA[PHP Ontem fui a assistir a uma sessão de php Aqui fica um pequeno resumo da sessão : Optimização de código Usar sempre que possivel require_once em vez de include. Nas strings usar o explode em vez do preg_split. Usar arrays o php trabalha bem com arrays. Evitar gravar as sessões e cookies em ficheiros, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-490" title="sapo" src="http://spotgeek.net/wp-content/uploads/2009/10/sapo-300x300.png" alt="sapo" width="180" height="180" />PHP</p>
<p>Ontem fui a assistir a uma sessão de php</p>
<p>Aqui fica um pequeno resumo da sessão :</p>
<p><strong>Optimização de código</strong></p>
<p>Usar sempre que possivel require_once em vez de include.</p>
<p>Nas strings usar o explode em vez do preg_split.</p>
<p>Usar arrays o php trabalha bem com arrays.</p>
<p>Evitar gravar as sessões e cookies em ficheiros, pois o acesso ao filesystem é sempre mais lento, de preferência utilizar o memcached.</p>
<p>Reduzir ciclos, querys , stats, remote resquests.</p>
<p>Não misturar HTML no meio da lógica . HTML Deve ser HTML.</p>
<p>Evitar as mensagens de erro do php, warnings, notices pois se aparecem é má programação.</p>
<p><strong>&lt;&#8211; Apache &#8211;&gt;</strong></p>
<p>Directory index</p>
<p>Se o nosso ficheiro de index é index.php deve estar logo na 1ª linha do directory index.</p>
<p>A maior parte dos casos temos.. index.html,index.js, index.asp, index.htm e só no fim é que aparece o index.php</p>
<p>.htaccess</p>
<p>Se não estamos a utilizar ficheiros .htaccess desligar o mesmo do apache.</p>
<p>Evitar os symlinks.</p>
<p><strong>Novidades do PHP 5 </strong></p>
<p>Namespace</p>
<p>Reflection</p>
<p>Late Static Binding</p>
<p>Interface</p>
<p>Final Class</p>
<p>anonymous function</p>
<p>clone</p>
<p><strong>SPL &#8211; Standard PHP library </strong></p>
<p>SOLR</p>
<p>DATETIME</p>
<p>definir um date_default (sempre que se trabalha com datas)</p>
<p>Timezone</p>
<p>Memcache(d)</p>
<p>PECL</p>
<p><strong>SQL &#8211; PDO</strong></p>
<p>DataBase access layer</p>
<p><strong>Simple XML</strong></p>
<p>Webservices</p>
<p>O auth</p>
<p>SOAP</p>
<p>Streams</p>
<p>- Stream filters</p>
<p>-Stream contexts</p>
<p>-Stream erros</p>
<p>Magic quotes</p>
<p>Filter sanitize</p>
<p>Special chars</p>
<p>SuhosinPATH</p>
<p>desactivar CURL</p>
<p>desactivar remote links</p>
<p>Mail</p>
<p>Banir Ficheiros / binary</p>
<p>Zend server</p>
<p>Zend platform</p>
<p>Zend guard</p>
<p>Zend studio edit (debug)</p>
<p>APC (op code cache)</p>
<p>Strace</p>
<p>XDebug</p>
<p>Webgriad</p>
<p><strong>Boas Práticas </strong></p>
<p>Utilizar ficheiros de config, classes, definir sempre o time zone, classe debug, classe procedure, classe log, fire php.</p>
<h2>Smarty Templates</h2>
<p>Quem usa ?</p>
<p>Zend , xcart, xoops, open</p>
<p>Objectivo</p>
<p>Separar a lógica da apresentação</p>
<p>Estrutura de pastas do smarty<br />
libs<br />
templates<br />
templates_c<br />
cache</p>
<p>As smarty templates atenuam o cross site (XSS &#8211; injecção e colocação de exploits)</p>
<p>Frameworks php</p>
<p>Log4PHP</p>
<p><a title="smarty" href="http://www.smarty.net/manual/pt_BR/" target="_blank">Como usar o smarty ?</a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fsapo-sessions-php%2F&amp;partner=sociable" title="Print"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fspotgeek.net%2Fsapo-sessions-php%2F&amp;title=sapo%20sessions%20php&amp;bodytext=PHP%0D%0A%0D%0AOntem%20fui%20a%20assistir%20a%20uma%20sess%C3%A3o%20de%20php%0D%0A%0D%0AAqui%20fica%20um%20pequeno%20resumo%20da%20sess%C3%A3o%20%3A%0D%0A%0D%0AOptimiza%C3%A7%C3%A3o%20de%20c%C3%B3digo%0D%0A%0D%0AUsar%20sempre%20que%20possivel%20require_once%20em%20vez%20de%20include.%0D%0A%0D%0ANas%20strings%20usar%20o%20explode%20em%20vez%20do%20preg_split.%0D%0A%0D%0AUsar%20arrays%20o%20" title="Digg"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fspotgeek.net%2Fsapo-sessions-php%2F" title="Sphinn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fspotgeek.net%2Fsapo-sessions-php%2F&amp;title=sapo%20sessions%20php&amp;notes=PHP%0D%0A%0D%0AOntem%20fui%20a%20assistir%20a%20uma%20sess%C3%A3o%20de%20php%0D%0A%0D%0AAqui%20fica%20um%20pequeno%20resumo%20da%20sess%C3%A3o%20%3A%0D%0A%0D%0AOptimiza%C3%A7%C3%A3o%20de%20c%C3%B3digo%0D%0A%0D%0AUsar%20sempre%20que%20possivel%20require_once%20em%20vez%20de%20include.%0D%0A%0D%0ANas%20strings%20usar%20o%20explode%20em%20vez%20do%20preg_split.%0D%0A%0D%0AUsar%20arrays%20o%20" title="del.icio.us"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fspotgeek.net%2Fsapo-sessions-php%2F&amp;t=sapo%20sessions%20php" title="Facebook"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fspotgeek.net%2Fsapo-sessions-php%2F&amp;title=sapo%20sessions%20php" title="Mixx"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fspotgeek.net%2Fsapo-sessions-php%2F&amp;title=sapo%20sessions%20php&amp;annotation=PHP%0D%0A%0D%0AOntem%20fui%20a%20assistir%20a%20uma%20sess%C3%A3o%20de%20php%0D%0A%0D%0AAqui%20fica%20um%20pequeno%20resumo%20da%20sess%C3%A3o%20%3A%0D%0A%0D%0AOptimiza%C3%A7%C3%A3o%20de%20c%C3%B3digo%0D%0A%0D%0AUsar%20sempre%20que%20possivel%20require_once%20em%20vez%20de%20include.%0D%0A%0D%0ANas%20strings%20usar%20o%20explode%20em%20vez%20do%20preg_split.%0D%0A%0D%0AUsar%20arrays%20o%20" title="Google Bookmarks"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fspotgeek.net%2Fsapo-sessions-php%2F&amp;title=sapo%20sessions%20php&amp;source=SpotGeek.net+Tecnologia+%2C+Programa%C3%A7%C3%A3o+%2C+web+%2C+internet%2C+php&amp;summary=PHP%0D%0A%0D%0AOntem%20fui%20a%20assistir%20a%20uma%20sess%C3%A3o%20de%20php%0D%0A%0D%0AAqui%20fica%20um%20pequeno%20resumo%20da%20sess%C3%A3o%20%3A%0D%0A%0D%0AOptimiza%C3%A7%C3%A3o%20de%20c%C3%B3digo%0D%0A%0D%0AUsar%20sempre%20que%20possivel%20require_once%20em%20vez%20de%20include.%0D%0A%0D%0ANas%20strings%20usar%20o%20explode%20em%20vez%20do%20preg_split.%0D%0A%0D%0AUsar%20arrays%20o%20" title="LinkedIn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.netvibes.com/share?title=sapo%20sessions%20php&amp;url=http%3A%2F%2Fspotgeek.net%2Fsapo-sessions-php%2F" title="Netvibes"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fsapo-sessions-php%2F&amp;partner=sociable" title="PDF"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://spotgeek.net/feed/" title="RSS"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=sapo%20sessions%20php&amp;url=http%3A%2F%2Fspotgeek.net%2Fsapo-sessions-php%2F" title="Slashdot"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fspotgeek.net%2Fsapo-sessions-php%2F&amp;title=sapo%20sessions%20php" title="StumbleUpon"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=sapo%20sessions%20php%20-%20http%3A%2F%2Fspotgeek.net%2Fsapo-sessions-php%2F" title="Twitter"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://spotgeek.net/sapo-sessions-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>download php 6</title>
		<link>http://spotgeek.net/download-php-6/</link>
		<comments>http://spotgeek.net/download-php-6/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 04:26:27 +0000</pubDate>
		<dc:creator>Filipe Teixeira Nunes</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[programação]]></category>
		<category><![CDATA[segurança]]></category>

		<guid isPermaLink="false">http://spotgeek.net/?p=465</guid>
		<description><![CDATA[O php 6 sofreu alterações importantes a nível de segurança, que vem melhor em muito esta linguagem de programação, abaixo poderão ver a lista de alteraçoes. esta nova versão 6 só deve estar disponível no final do ano. http://www.ibm.com/developerworks/opensource/library/os-php-future/?ca=dgr-lnxw01PHP-Future Download php Share and enjoy:]]></description>
			<content:encoded><![CDATA[<p>O php 6 sofreu alterações importantes a nível de segurança, que vem melhor em muito esta linguagem de programação, abaixo poderão ver a lista de alteraçoes. esta nova versão 6 só deve estar disponível no final do ano.</p>
<p>http://www.ibm.com/developerworks/opensource/library/os-php-future/?ca=dgr-lnxw01PHP-Future</p>
<p>Download<a href="http://www.php.net/downloads.php" target="_blank"> php </a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-6%2F&amp;partner=sociable" title="Print"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-6%2F&amp;title=download%20php%206&amp;bodytext=O%20php%206%20sofreu%20altera%C3%A7%C3%B5es%20importantes%20a%20n%C3%ADvel%20de%20seguran%C3%A7a%2C%20que%20vem%20melhor%20em%20muito%20esta%20linguagem%20de%20programa%C3%A7%C3%A3o%2C%20abaixo%20poder%C3%A3o%20ver%20a%20lista%20de%20altera%C3%A7oes.%20esta%20nova%20vers%C3%A3o%206%20s%C3%B3%20deve%20estar%20dispon%C3%ADvel%20no%20final%20do%20ano.%0D%0A%0D%0Ahttp%3A%2F%2Fwww.ibm.com" title="Digg"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fspotgeek.net%2Fdownload-php-6%2F" title="Sphinn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-6%2F&amp;title=download%20php%206&amp;notes=O%20php%206%20sofreu%20altera%C3%A7%C3%B5es%20importantes%20a%20n%C3%ADvel%20de%20seguran%C3%A7a%2C%20que%20vem%20melhor%20em%20muito%20esta%20linguagem%20de%20programa%C3%A7%C3%A3o%2C%20abaixo%20poder%C3%A3o%20ver%20a%20lista%20de%20altera%C3%A7oes.%20esta%20nova%20vers%C3%A3o%206%20s%C3%B3%20deve%20estar%20dispon%C3%ADvel%20no%20final%20do%20ano.%0D%0A%0D%0Ahttp%3A%2F%2Fwww.ibm.com" title="del.icio.us"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fspotgeek.net%2Fdownload-php-6%2F&amp;t=download%20php%206" title="Facebook"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-6%2F&amp;title=download%20php%206" title="Mixx"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fspotgeek.net%2Fdownload-php-6%2F&amp;title=download%20php%206&amp;annotation=O%20php%206%20sofreu%20altera%C3%A7%C3%B5es%20importantes%20a%20n%C3%ADvel%20de%20seguran%C3%A7a%2C%20que%20vem%20melhor%20em%20muito%20esta%20linguagem%20de%20programa%C3%A7%C3%A3o%2C%20abaixo%20poder%C3%A3o%20ver%20a%20lista%20de%20altera%C3%A7oes.%20esta%20nova%20vers%C3%A3o%206%20s%C3%B3%20deve%20estar%20dispon%C3%ADvel%20no%20final%20do%20ano.%0D%0A%0D%0Ahttp%3A%2F%2Fwww.ibm.com" title="Google Bookmarks"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-6%2F&amp;title=download%20php%206&amp;source=SpotGeek.net+Tecnologia+%2C+Programa%C3%A7%C3%A3o+%2C+web+%2C+internet%2C+php&amp;summary=O%20php%206%20sofreu%20altera%C3%A7%C3%B5es%20importantes%20a%20n%C3%ADvel%20de%20seguran%C3%A7a%2C%20que%20vem%20melhor%20em%20muito%20esta%20linguagem%20de%20programa%C3%A7%C3%A3o%2C%20abaixo%20poder%C3%A3o%20ver%20a%20lista%20de%20altera%C3%A7oes.%20esta%20nova%20vers%C3%A3o%206%20s%C3%B3%20deve%20estar%20dispon%C3%ADvel%20no%20final%20do%20ano.%0D%0A%0D%0Ahttp%3A%2F%2Fwww.ibm.com" title="LinkedIn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.netvibes.com/share?title=download%20php%206&amp;url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-6%2F" title="Netvibes"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-6%2F&amp;partner=sociable" title="PDF"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://spotgeek.net/feed/" title="RSS"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=download%20php%206&amp;url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-6%2F" title="Slashdot"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-6%2F&amp;title=download%20php%206" title="StumbleUpon"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=download%20php%206%20-%20http%3A%2F%2Fspotgeek.net%2Fdownload-php-6%2F" title="Twitter"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://spotgeek.net/download-php-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>30 dicas boas para quem se está a iniciar no PHP</title>
		<link>http://spotgeek.net/30-dicas-boas-para-quem-se-esta-a-iniciar-no-php/</link>
		<comments>http://spotgeek.net/30-dicas-boas-para-quem-se-esta-a-iniciar-no-php/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 16:47:20 +0000</pubDate>
		<dc:creator>Filipe Teixeira Nunes</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[best]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[pratics]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://spotgeek.net/?p=431</guid>
		<description><![CDATA[30 dicas boas para quem se está a iniciar no php. http://net.tutsplus.com/tutorials/php/30-php-best-practices-for-beginners/ Share and enjoy:]]></description>
			<content:encoded><![CDATA[<p>30 dicas boas para quem se está a iniciar no php.</p>
<p>http://net.tutsplus.com/tutorials/php/30-php-best-practices-for-beginners/</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2F30-dicas-boas-para-quem-se-esta-a-iniciar-no-php%2F&amp;partner=sociable" title="Print"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fspotgeek.net%2F30-dicas-boas-para-quem-se-esta-a-iniciar-no-php%2F&amp;title=30%20dicas%20boas%20para%20quem%20se%20est%C3%A1%20a%20iniciar%20no%20PHP&amp;bodytext=30%20dicas%20boas%20para%20quem%20se%20est%C3%A1%20a%20iniciar%20no%20php.%0D%0A%0D%0Ahttp%3A%2F%2Fnet.tutsplus.com%2Ftutorials%2Fphp%2F30-php-best-practices-for-beginners%2F" title="Digg"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fspotgeek.net%2F30-dicas-boas-para-quem-se-esta-a-iniciar-no-php%2F" title="Sphinn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fspotgeek.net%2F30-dicas-boas-para-quem-se-esta-a-iniciar-no-php%2F&amp;title=30%20dicas%20boas%20para%20quem%20se%20est%C3%A1%20a%20iniciar%20no%20PHP&amp;notes=30%20dicas%20boas%20para%20quem%20se%20est%C3%A1%20a%20iniciar%20no%20php.%0D%0A%0D%0Ahttp%3A%2F%2Fnet.tutsplus.com%2Ftutorials%2Fphp%2F30-php-best-practices-for-beginners%2F" title="del.icio.us"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fspotgeek.net%2F30-dicas-boas-para-quem-se-esta-a-iniciar-no-php%2F&amp;t=30%20dicas%20boas%20para%20quem%20se%20est%C3%A1%20a%20iniciar%20no%20PHP" title="Facebook"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fspotgeek.net%2F30-dicas-boas-para-quem-se-esta-a-iniciar-no-php%2F&amp;title=30%20dicas%20boas%20para%20quem%20se%20est%C3%A1%20a%20iniciar%20no%20PHP" title="Mixx"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fspotgeek.net%2F30-dicas-boas-para-quem-se-esta-a-iniciar-no-php%2F&amp;title=30%20dicas%20boas%20para%20quem%20se%20est%C3%A1%20a%20iniciar%20no%20PHP&amp;annotation=30%20dicas%20boas%20para%20quem%20se%20est%C3%A1%20a%20iniciar%20no%20php.%0D%0A%0D%0Ahttp%3A%2F%2Fnet.tutsplus.com%2Ftutorials%2Fphp%2F30-php-best-practices-for-beginners%2F" title="Google Bookmarks"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fspotgeek.net%2F30-dicas-boas-para-quem-se-esta-a-iniciar-no-php%2F&amp;title=30%20dicas%20boas%20para%20quem%20se%20est%C3%A1%20a%20iniciar%20no%20PHP&amp;source=SpotGeek.net+Tecnologia+%2C+Programa%C3%A7%C3%A3o+%2C+web+%2C+internet%2C+php&amp;summary=30%20dicas%20boas%20para%20quem%20se%20est%C3%A1%20a%20iniciar%20no%20php.%0D%0A%0D%0Ahttp%3A%2F%2Fnet.tutsplus.com%2Ftutorials%2Fphp%2F30-php-best-practices-for-beginners%2F" title="LinkedIn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.netvibes.com/share?title=30%20dicas%20boas%20para%20quem%20se%20est%C3%A1%20a%20iniciar%20no%20PHP&amp;url=http%3A%2F%2Fspotgeek.net%2F30-dicas-boas-para-quem-se-esta-a-iniciar-no-php%2F" title="Netvibes"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2F30-dicas-boas-para-quem-se-esta-a-iniciar-no-php%2F&amp;partner=sociable" title="PDF"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://spotgeek.net/feed/" title="RSS"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=30%20dicas%20boas%20para%20quem%20se%20est%C3%A1%20a%20iniciar%20no%20PHP&amp;url=http%3A%2F%2Fspotgeek.net%2F30-dicas-boas-para-quem-se-esta-a-iniciar-no-php%2F" title="Slashdot"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fspotgeek.net%2F30-dicas-boas-para-quem-se-esta-a-iniciar-no-php%2F&amp;title=30%20dicas%20boas%20para%20quem%20se%20est%C3%A1%20a%20iniciar%20no%20PHP" title="StumbleUpon"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=30%20dicas%20boas%20para%20quem%20se%20est%C3%A1%20a%20iniciar%20no%20PHP%20-%20http%3A%2F%2Fspotgeek.net%2F30-dicas-boas-para-quem-se-esta-a-iniciar-no-php%2F" title="Twitter"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://spotgeek.net/30-dicas-boas-para-quem-se-esta-a-iniciar-no-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ligar postgres com PHP</title>
		<link>http://spotgeek.net/ligar-postgres-com-php/</link>
		<comments>http://spotgeek.net/ligar-postgres-com-php/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 08:20:56 +0000</pubDate>
		<dc:creator>Filipe Teixeira Nunes</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[connect]]></category>
		<category><![CDATA[postgres]]></category>

		<guid isPermaLink="false">http://spotgeek.net/?p=429</guid>
		<description><![CDATA[Arquivos de Configuração O postgres possui basicamente 2 arquivos de configurações responsáveis pela conexão, eles são: postgresql.conf aqui você precisa definir que o seu banco de dados irá receber conexão através de TCP/IP, até a versão 7.9 do postgres esta configuração era feita assim: tcpip_socket = true A partir da versão 8 isso é feito [...]]]></description>
			<content:encoded><![CDATA[<div>
<div>
<div>
<div>
<h3>Arquivos de Configuração</h3>
<p>O postgres possui basicamente 2 arquivos de configurações responsáveis pela conexão, eles são:</p>
<ol>
<li>postgresql.conf aqui você precisa definir que o seu banco de dados irá receber conexão através de TCP/IP, até a versão 7.9 do postgres esta configuração era feita assim:
<pre><code>tcpip_socket = true</code></pre>
<p><code>A partir da versão 8 isso é feito assim:</code> listen_addresses = ‘*’ port = 5432</li>
<li>pg_hba.conf este é o arquivo que define quem pode acessar o que e de qual forma: para permitir que qualquer IP possa acessar qualquer banco adicione esta linha no arquivo host    all          all         0.0.0.0 0.0.0.0       password Se quiser que apenas 1 IP específico possa acessar a máquina então host    all          all         200.200.200.200/32      password A palavra password define que para você acessar o banco tem que digitar a senha, existe a palavra trust que diz ao banco para nao pedir senha então tenha cuidado com este tipo de configuração</li>
</ol>
<p>Após mexer nestes dois arquivos reinicie o banco. Para acessar o seu banco através do terminal use o comando: psql -h 200.200.200.200 -U postgres -d banco Fique atento aos firewall pois eles podem barrar a sua conexão com o banco, e mais uma dica <span><span><span>para que a conexão possa ser estabelecida no CentOS é necessário desativar o SELinux, que por padrão na instalação fica ativado:</span></span></span> vim /etc/sysconfig/selinux  e configure  o SELINUX=disabled</p>
<h2>Exemplo de Conexão PHP para Teste</h2>
<pre lang="php">try {
	$db = new PDO("pgsql:host=localhost dbname=datacentro user=postgres password=data1234");

	$sql = 'SELECT * FROM pessoa';
	foreach ($db-&gt;query($sql) as $row) {
		print $row['cod'] . "\t";
		print $row['nome'] . "\t";
	}

} catch (PDOException  $e) {
   print $e-&gt;getMessage();
}
die("fim");</pre>
<h2>Referência</h2>
<p><a href="http://battisti.etc.br/2009/09/28/postgres-permission-denied-is-server-running/" target="_blank">http://battisti.etc.br/2009/09/28/postgres-permission-denied-is-server-running/</a>http://www.cyberciti.biz/faq/postgresql-remote-access-or-connection/</p>
<p>http://dickrips.wordpress.com/2009/01/16/apache-php-postgresql-no-centos-e-fedora</p></div>
</div>
</div>
</div>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fligar-postgres-com-php%2F&amp;partner=sociable" title="Print"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fspotgeek.net%2Fligar-postgres-com-php%2F&amp;title=ligar%20postgres%20com%20PHP&amp;bodytext=%0D%0A%0D%0A%0D%0A%0D%0AArquivos%20de%20Configura%C3%A7%C3%A3o%0D%0AO%20postgres%20possui%20basicamente%202%20arquivos%20de%20configura%C3%A7%C3%B5es%20respons%C3%A1veis%20pela%20conex%C3%A3o%2C%20eles%20s%C3%A3o%3A%0D%0A%0D%0A%09postgresql.conf%20aqui%20voc%C3%AA%20precisa%20definir%20que%20o%20seu%20banco%20de%20dados%20ir%C3%A1%20receber%20conex%C3%A3o%20atrav%C3%A9s%20de%20TCP%2FIP%2C%20" title="Digg"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fspotgeek.net%2Fligar-postgres-com-php%2F" title="Sphinn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fspotgeek.net%2Fligar-postgres-com-php%2F&amp;title=ligar%20postgres%20com%20PHP&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0AArquivos%20de%20Configura%C3%A7%C3%A3o%0D%0AO%20postgres%20possui%20basicamente%202%20arquivos%20de%20configura%C3%A7%C3%B5es%20respons%C3%A1veis%20pela%20conex%C3%A3o%2C%20eles%20s%C3%A3o%3A%0D%0A%0D%0A%09postgresql.conf%20aqui%20voc%C3%AA%20precisa%20definir%20que%20o%20seu%20banco%20de%20dados%20ir%C3%A1%20receber%20conex%C3%A3o%20atrav%C3%A9s%20de%20TCP%2FIP%2C%20" title="del.icio.us"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fspotgeek.net%2Fligar-postgres-com-php%2F&amp;t=ligar%20postgres%20com%20PHP" title="Facebook"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fspotgeek.net%2Fligar-postgres-com-php%2F&amp;title=ligar%20postgres%20com%20PHP" title="Mixx"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fspotgeek.net%2Fligar-postgres-com-php%2F&amp;title=ligar%20postgres%20com%20PHP&amp;annotation=%0D%0A%0D%0A%0D%0A%0D%0AArquivos%20de%20Configura%C3%A7%C3%A3o%0D%0AO%20postgres%20possui%20basicamente%202%20arquivos%20de%20configura%C3%A7%C3%B5es%20respons%C3%A1veis%20pela%20conex%C3%A3o%2C%20eles%20s%C3%A3o%3A%0D%0A%0D%0A%09postgresql.conf%20aqui%20voc%C3%AA%20precisa%20definir%20que%20o%20seu%20banco%20de%20dados%20ir%C3%A1%20receber%20conex%C3%A3o%20atrav%C3%A9s%20de%20TCP%2FIP%2C%20" title="Google Bookmarks"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fspotgeek.net%2Fligar-postgres-com-php%2F&amp;title=ligar%20postgres%20com%20PHP&amp;source=SpotGeek.net+Tecnologia+%2C+Programa%C3%A7%C3%A3o+%2C+web+%2C+internet%2C+php&amp;summary=%0D%0A%0D%0A%0D%0A%0D%0AArquivos%20de%20Configura%C3%A7%C3%A3o%0D%0AO%20postgres%20possui%20basicamente%202%20arquivos%20de%20configura%C3%A7%C3%B5es%20respons%C3%A1veis%20pela%20conex%C3%A3o%2C%20eles%20s%C3%A3o%3A%0D%0A%0D%0A%09postgresql.conf%20aqui%20voc%C3%AA%20precisa%20definir%20que%20o%20seu%20banco%20de%20dados%20ir%C3%A1%20receber%20conex%C3%A3o%20atrav%C3%A9s%20de%20TCP%2FIP%2C%20" title="LinkedIn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.netvibes.com/share?title=ligar%20postgres%20com%20PHP&amp;url=http%3A%2F%2Fspotgeek.net%2Fligar-postgres-com-php%2F" title="Netvibes"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fligar-postgres-com-php%2F&amp;partner=sociable" title="PDF"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://spotgeek.net/feed/" title="RSS"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=ligar%20postgres%20com%20PHP&amp;url=http%3A%2F%2Fspotgeek.net%2Fligar-postgres-com-php%2F" title="Slashdot"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fspotgeek.net%2Fligar-postgres-com-php%2F&amp;title=ligar%20postgres%20com%20PHP" title="StumbleUpon"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=ligar%20postgres%20com%20PHP%20-%20http%3A%2F%2Fspotgeek.net%2Fligar-postgres-com-php%2F" title="Twitter"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://spotgeek.net/ligar-postgres-com-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open cart php</title>
		<link>http://spotgeek.net/open-cart-php/</link>
		<comments>http://spotgeek.net/open-cart-php/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 11:05:13 +0000</pubDate>
		<dc:creator>Filipe Teixeira Nunes</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[cubecart]]></category>
		<category><![CDATA[loja]]></category>
		<category><![CDATA[open cart]]></category>

		<guid isPermaLink="false">http://spotgeek.net/?p=390</guid>
		<description><![CDATA[OpenCart é uma platafroma de comércio online baseado em PHP. Esta plataforma suporta o sistema de “carrinho de compras” e permite a criação de uma solução de comércio eletrónico, ideal para pequenas empresas a um custo minimo. Entre as suas caracteristicas mais interesasntes encontram-se a possibilidade de criar categorias, produtos e marcas, sem qualquer tipo [...]]]></description>
			<content:encoded><![CDATA[<p>OpenCart é uma platafroma de comércio online baseado em PHP. Esta plataforma suporta o sistema de “carrinho de compras” e permite a criação de uma solução de comércio eletrónico, ideal para pequenas empresas a um custo minimo.</p>
<p><a href="http://www.programaslivres.net/blog/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5wcm9ncmFtYXNsaXZyZXMubmV0L2Jsb2cvd3AtY29udGVudC91cGxvYWRzLzIwMDkvMDcvb3BlbmNhcnQucG5n" target="_blank"><img title="OpenCart" src="http://www.programaslivres.net/blog/wp-content/uploads/2009/07/opencart-thumb.png" border="0" alt="opencart thumb OpenCart" width="560" height="367" /></a></p>
<p>Entre as suas caracteristicas mais interesasntes encontram-se a possibilidade de criar categorias, produtos e marcas, sem qualquer tipo de limite, o suporte a várias moedas, a possibilidade dos clientes inserirem reviews dos produtos, redimensionamento automático das imagens do produtos e o suporte a <strong>mais de 20 sistemas de pagamento</strong>.</p>
<p>A interface é agradavél e extremamamente intuitiva e o backoffice é bastante funcional.</p>
<p>Um demo deste serviço pode ser experimentado <a href="http://www.programaslivres.net/blog/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2RlbW8ub3BlbmNhcnQuY29tLw==" target="_blank">aqui</a>, e o download está disponivel <a href="http://www.programaslivres.net/blog/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5vcGVuY2FydC5jb20vaW5kZXgucGhwP3JvdXRlPWluZm9ybWF0aW9uL2Rvd25sb2Fk" target="_blank">aqui</a>.</p>
<p>Fonte :</p>
<table border="0" width="454">
<tbody>
<tr>
<td></td>
<td valign="middle"><em><strong><a href="http://www.programaslivres.net/blog/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy5wcm9ncmFtYXNsaXZyZXMubmV0L2F1dGhvci9uc2lsdmEv" target="_blank">Nélson Silva</a> escreve no PL todas as quintas um artigo sobre OpenWeb.</strong></em><em><strong> Podem encontrar mais artigos como este no seu <a href="http://www.programaslivres.net/blog/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2Jsb2cubmVsc29uc2lsdmEub3JnLw==" target="_blank">blog pessoal</a>.</strong></em></td>
</tr>
</tbody>
</table>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fopen-cart-php%2F&amp;partner=sociable" title="Print"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fspotgeek.net%2Fopen-cart-php%2F&amp;title=Open%20cart%20php&amp;bodytext=OpenCart%20%C3%A9%20uma%20platafroma%20de%20com%C3%A9rcio%20online%20baseado%20em%20PHP.%20Esta%20plataforma%20suporta%20o%20sistema%20de%20%E2%80%9Ccarrinho%20de%20compras%E2%80%9D%20e%20permite%20a%20cria%C3%A7%C3%A3o%20de%20uma%20solu%C3%A7%C3%A3o%20de%20com%C3%A9rcio%20eletr%C3%B3nico%2C%20ideal%20para%20pequenas%20empresas%20a%20um%20custo%20minimo.%0D%0A%0D%0A%0D%0A%0D%0AEntr" title="Digg"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fspotgeek.net%2Fopen-cart-php%2F" title="Sphinn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fspotgeek.net%2Fopen-cart-php%2F&amp;title=Open%20cart%20php&amp;notes=OpenCart%20%C3%A9%20uma%20platafroma%20de%20com%C3%A9rcio%20online%20baseado%20em%20PHP.%20Esta%20plataforma%20suporta%20o%20sistema%20de%20%E2%80%9Ccarrinho%20de%20compras%E2%80%9D%20e%20permite%20a%20cria%C3%A7%C3%A3o%20de%20uma%20solu%C3%A7%C3%A3o%20de%20com%C3%A9rcio%20eletr%C3%B3nico%2C%20ideal%20para%20pequenas%20empresas%20a%20um%20custo%20minimo.%0D%0A%0D%0A%0D%0A%0D%0AEntr" title="del.icio.us"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fspotgeek.net%2Fopen-cart-php%2F&amp;t=Open%20cart%20php" title="Facebook"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fspotgeek.net%2Fopen-cart-php%2F&amp;title=Open%20cart%20php" title="Mixx"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fspotgeek.net%2Fopen-cart-php%2F&amp;title=Open%20cart%20php&amp;annotation=OpenCart%20%C3%A9%20uma%20platafroma%20de%20com%C3%A9rcio%20online%20baseado%20em%20PHP.%20Esta%20plataforma%20suporta%20o%20sistema%20de%20%E2%80%9Ccarrinho%20de%20compras%E2%80%9D%20e%20permite%20a%20cria%C3%A7%C3%A3o%20de%20uma%20solu%C3%A7%C3%A3o%20de%20com%C3%A9rcio%20eletr%C3%B3nico%2C%20ideal%20para%20pequenas%20empresas%20a%20um%20custo%20minimo.%0D%0A%0D%0A%0D%0A%0D%0AEntr" title="Google Bookmarks"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fspotgeek.net%2Fopen-cart-php%2F&amp;title=Open%20cart%20php&amp;source=SpotGeek.net+Tecnologia+%2C+Programa%C3%A7%C3%A3o+%2C+web+%2C+internet%2C+php&amp;summary=OpenCart%20%C3%A9%20uma%20platafroma%20de%20com%C3%A9rcio%20online%20baseado%20em%20PHP.%20Esta%20plataforma%20suporta%20o%20sistema%20de%20%E2%80%9Ccarrinho%20de%20compras%E2%80%9D%20e%20permite%20a%20cria%C3%A7%C3%A3o%20de%20uma%20solu%C3%A7%C3%A3o%20de%20com%C3%A9rcio%20eletr%C3%B3nico%2C%20ideal%20para%20pequenas%20empresas%20a%20um%20custo%20minimo.%0D%0A%0D%0A%0D%0A%0D%0AEntr" title="LinkedIn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.netvibes.com/share?title=Open%20cart%20php&amp;url=http%3A%2F%2Fspotgeek.net%2Fopen-cart-php%2F" title="Netvibes"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fopen-cart-php%2F&amp;partner=sociable" title="PDF"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://spotgeek.net/feed/" title="RSS"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Open%20cart%20php&amp;url=http%3A%2F%2Fspotgeek.net%2Fopen-cart-php%2F" title="Slashdot"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fspotgeek.net%2Fopen-cart-php%2F&amp;title=Open%20cart%20php" title="StumbleUpon"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=Open%20cart%20php%20-%20http%3A%2F%2Fspotgeek.net%2Fopen-cart-php%2F" title="Twitter"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://spotgeek.net/open-cart-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download PHP 5.3.0 já saiu</title>
		<link>http://spotgeek.net/download-php-5-3-0-ja-saiu/</link>
		<comments>http://spotgeek.net/download-php-5-3-0-ja-saiu/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 17:38:49 +0000</pubDate>
		<dc:creator>Filipe Teixeira Nunes</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[classes]]></category>
		<category><![CDATA[downloads]]></category>

		<guid isPermaLink="false">http://spotgeek.net/?p=356</guid>
		<description><![CDATA[Foi lançada a versão 5.3.0 do PHP. Segundo a equipa de desenvolvimento, esta foi a maior implementação das versões série 5. Ela traz, além de várias novidades, uma porção de bugs foram corrigidos (mais de 140&#8230;). Algumas novidades em destaque, são: Namespaces &#8220;Namespace&#8221; é um conceito amplamente utilizado em várias áreas da informática. Imaginem um [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-357" title="elephpant-elephant-php-logo" src="http://spotgeek.net/wp-content/uploads/2009/07/elephpant-elephant-php-logo-300x192.png" alt="elephpant-elephant-php-logo" width="300" height="192" /></p>
<p>Foi lançada a versão 5.3.0 do PHP. Segundo a equipa de desenvolvimento, esta foi a maior implementação das versões série 5. Ela traz, além de várias novidades, uma porção de bugs foram corrigidos (mais de 140&#8230;).</p>
<p>Algumas novidades em destaque, são:</p>
<p>Namespaces</p>
<p>&#8220;Namespace&#8221; é um conceito amplamente utilizado em várias áreas da informática.<br />
Imaginem um sistema operativo com dois arquivos com o mesmo nome. Como eles não podem estar dentro da mesma pasta, certo? Sendo assim, criamos links de pastas diferentes para cada um deles.<br />
No PHP seria como criar variáveis dentro de namespaces.</p>
<p>Qualquer código PHP pode ser colocado em namespaces, mas apenas três tipos de código (Class, Funções e Constantes) são afectados por elas.</p>
<p>A utilidade disso é evitar problemas com nomes de variáveis do sistema ou de programas feitos por terceiros. Também evita ter que criar nomes longos para os objectos para impedir que não haja conflitos com outros objectos do mesmo nome.</p>
<p>Assim como outras funções do PHP (como a header() por exemplo), os namespaces devem ser definidos antes de qualquer echo ou print.</p>
<p>Existem dois tipos de namespaces: os namespaces comuns e os sub-namespaces. Veja um exemplo de <strong>declaração de namespaces:</strong><br />
<strong>Late StaticBinding</strong></p>
<p>Outra novidade é a implementação do conceito de &#8220;Late Static Binding&#8221;. Usando Late Statics Bindings, a resolução de métodos não é feito na classe onde ele foi criado, mas sim de forma hierárquica, seguindo a ordem de execução. Para entender melhor, veja o exemplo comparativo entre a implementação que tínhamos, e a nova possibilidade:</p>
<p>Agora com Static Bindings temos:<br />
GC (Garbage Colector)</p>
<p>Agora é possível armazenar o resultado de variáveis em cache. Desta forma, mesmo que o estado de sua variável mude, é possível recuperar um valor anterior. Veja o exemplo de uso:</p>
<p>gc_enable (); // activa o cache que irá guardar os resultados</p>
<p>$valor = &#8216;Primeiro valor&#8217;;<br />
echo $valor. &#8216;<!-- br-->&#8216;;<br />
$valor = &#8216;Segundo valor&#8217;;<br />
echo $valor. &#8216;<!-- br-->&#8216;;</p>
<p>$anteriores = gc_collect_cycles(); // apanha os valores anteriores em cache</p>
<p>$valor = $anteriores ['valor'] [0]; // apanha a posicao 0 da posicao de nome &#8216;valor&#8217;</p>
<p>gc_disable($anteriores); // limpa os valores apanhados e desaloca da memoria</p>
<p>echo $valor . &#8216;<!-- br-->&#8216;;</p>
<p>/*<br />
Esse script irah retornar:</p>
<p>Primeiro valor<br />
Segundo valor<br />
Primeiro valor<br />
*/</p>
<p>?&gt;</p>
<p><strong>Funções Anônimas</strong></p>
<p>Funções Anônimas permitem criar funções sem um nome específico. Elas são muito úteis quando usadas como parâmetros de funções de callback (como preg_replace_callback), mas podem ter vários outras utilidades. Veja um exemplo:</p>
<p>Além dessas novas funções, existem alterações nos drives de ligação com o MySQL, alterações de comportamento em funções já amplamente utilizadas como a função session(), md5(), opendir().</p>
<p>Link para download : <a href="http://php.net/downloads.php" target="_blank">http://php.net/downloads.php</a></p>
<p>Fonte: <a href="http://samuelcorradi.com.br/lancado_oficialmente_o_php_350.html" target="_blank">http://samuelcorradi.com.br</a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-5-3-0-ja-saiu%2F&amp;partner=sociable" title="Print"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-5-3-0-ja-saiu%2F&amp;title=Download%20PHP%205.3.0%20j%C3%A1%20saiu&amp;bodytext=%0D%0A%0D%0AFoi%20lan%C3%A7ada%20a%20vers%C3%A3o%205.3.0%20do%20PHP.%20Segundo%20a%20equipa%20de%20desenvolvimento%2C%20esta%20foi%20a%20maior%20implementa%C3%A7%C3%A3o%20das%20vers%C3%B5es%20s%C3%A9rie%205.%20Ela%20traz%2C%20al%C3%A9m%20de%20v%C3%A1rias%20novidades%2C%20uma%20por%C3%A7%C3%A3o%20de%20bugs%20foram%20corrigidos%20%28mais%20de%20140...%29.%0D%0A%0D%0AAlgumas%20novidades%20e" title="Digg"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fspotgeek.net%2Fdownload-php-5-3-0-ja-saiu%2F" title="Sphinn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-5-3-0-ja-saiu%2F&amp;title=Download%20PHP%205.3.0%20j%C3%A1%20saiu&amp;notes=%0D%0A%0D%0AFoi%20lan%C3%A7ada%20a%20vers%C3%A3o%205.3.0%20do%20PHP.%20Segundo%20a%20equipa%20de%20desenvolvimento%2C%20esta%20foi%20a%20maior%20implementa%C3%A7%C3%A3o%20das%20vers%C3%B5es%20s%C3%A9rie%205.%20Ela%20traz%2C%20al%C3%A9m%20de%20v%C3%A1rias%20novidades%2C%20uma%20por%C3%A7%C3%A3o%20de%20bugs%20foram%20corrigidos%20%28mais%20de%20140...%29.%0D%0A%0D%0AAlgumas%20novidades%20e" title="del.icio.us"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fspotgeek.net%2Fdownload-php-5-3-0-ja-saiu%2F&amp;t=Download%20PHP%205.3.0%20j%C3%A1%20saiu" title="Facebook"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-5-3-0-ja-saiu%2F&amp;title=Download%20PHP%205.3.0%20j%C3%A1%20saiu" title="Mixx"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fspotgeek.net%2Fdownload-php-5-3-0-ja-saiu%2F&amp;title=Download%20PHP%205.3.0%20j%C3%A1%20saiu&amp;annotation=%0D%0A%0D%0AFoi%20lan%C3%A7ada%20a%20vers%C3%A3o%205.3.0%20do%20PHP.%20Segundo%20a%20equipa%20de%20desenvolvimento%2C%20esta%20foi%20a%20maior%20implementa%C3%A7%C3%A3o%20das%20vers%C3%B5es%20s%C3%A9rie%205.%20Ela%20traz%2C%20al%C3%A9m%20de%20v%C3%A1rias%20novidades%2C%20uma%20por%C3%A7%C3%A3o%20de%20bugs%20foram%20corrigidos%20%28mais%20de%20140...%29.%0D%0A%0D%0AAlgumas%20novidades%20e" title="Google Bookmarks"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-5-3-0-ja-saiu%2F&amp;title=Download%20PHP%205.3.0%20j%C3%A1%20saiu&amp;source=SpotGeek.net+Tecnologia+%2C+Programa%C3%A7%C3%A3o+%2C+web+%2C+internet%2C+php&amp;summary=%0D%0A%0D%0AFoi%20lan%C3%A7ada%20a%20vers%C3%A3o%205.3.0%20do%20PHP.%20Segundo%20a%20equipa%20de%20desenvolvimento%2C%20esta%20foi%20a%20maior%20implementa%C3%A7%C3%A3o%20das%20vers%C3%B5es%20s%C3%A9rie%205.%20Ela%20traz%2C%20al%C3%A9m%20de%20v%C3%A1rias%20novidades%2C%20uma%20por%C3%A7%C3%A3o%20de%20bugs%20foram%20corrigidos%20%28mais%20de%20140...%29.%0D%0A%0D%0AAlgumas%20novidades%20e" title="LinkedIn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.netvibes.com/share?title=Download%20PHP%205.3.0%20j%C3%A1%20saiu&amp;url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-5-3-0-ja-saiu%2F" title="Netvibes"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-5-3-0-ja-saiu%2F&amp;partner=sociable" title="PDF"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://spotgeek.net/feed/" title="RSS"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Download%20PHP%205.3.0%20j%C3%A1%20saiu&amp;url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-5-3-0-ja-saiu%2F" title="Slashdot"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fspotgeek.net%2Fdownload-php-5-3-0-ja-saiu%2F&amp;title=Download%20PHP%205.3.0%20j%C3%A1%20saiu" title="StumbleUpon"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=Download%20PHP%205.3.0%20j%C3%A1%20saiu%20-%20http%3A%2F%2Fspotgeek.net%2Fdownload-php-5-3-0-ja-saiu%2F" title="Twitter"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://spotgeek.net/download-php-5-3-0-ja-saiu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>50 Extremely Useful PHP Tools</title>
		<link>http://spotgeek.net/50-extremely-useful-php-tools/</link>
		<comments>http://spotgeek.net/50-extremely-useful-php-tools/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 00:26:09 +0000</pubDate>
		<dc:creator>Filipe Teixeira</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[programação]]></category>
		<category><![CDATA[webdevelop]]></category>

		<guid isPermaLink="false">http://spotgeek.net/?p=174</guid>
		<description><![CDATA[PHP is one of the most widely used open-source server-side scripting languages that exist today. With over 20 million indexed domains using PHP, including major websites like Facebook, Digg and WordPress, there are good reasons why many Web developers prefer it to other server-side scripting languages, such as Python and Ruby. PHP is faster (updated), [...]]]></description>
			<content:encoded><![CDATA[<p><strong>PHP</strong> is one of the most widely used open-source server-side scripting languages that exist today. With over 20 million indexed domains using PHP, including major websites like Facebook, Digg and WordPress, there are good reasons why many Web developers prefer it to other server-side scripting languages, such as Python and Ruby.</p>
<p><a href="http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&amp;lang=php&amp;lang2=ruby">PHP is faster</a> (<em>updated</em>), and it is <a href="http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html">the most used scripting language</a> in practice; it has detailed documentation, a huge community, numerous ready-to-use scripts and well-supported frameworks; and most importantly, it’s much easier to get started with PHP than with other scripting languages (Python, for example). That’s why it makes perfect sense to provide the huge community of PHP developers with an overview of useful tools and resources that can make their development process easier and more effective.</p>
<p>This post presents <strong>50 useful PHP tools that can significantly improve your programming workflow</strong>. Among other things, you’ll find a plethora of libraries and classes that aid in debugging, testing, profiling and code-authoring in PHP.</p>
<p>You may also want to take a look at the following related posts:</p>
<ul>
<li><a href="http://www.smashingmagazine.com/2008/12/09/50-really-useful-css-tools/">50 Extremely Useful And Powerful CSS Tools</a></li>
<li><a href="http://www.smashingmagazine.com/2008/11/18/15-helpful-in-browser-web-development-tools/">15 Helpful In-Browser Web-Development Tools</a></li>
</ul>
<h3>Debugging Tools</h3>
<ul>
<li><a href="http://code.google.com/p/webgrind/">Webgrind</a><br />
Webgrind is an <a href="http://www.xdebug.org/">Xdebug</a> profiling Web front end in PHP 5. It implements a subset of the features of <a href="http://kcachegrind.sourceforge.net/cgi-bin/show.cgi">kcachegrind</a>, installs in seconds and works on all platforms. For quick ‘n’ dirty optimizations, it does the job.<a href="http://code.google.com/p/webgrind/"><img src="http://88.198.60.17/images/powerful-php-tools/webgrind.jpg" alt="Webgrind" width="500" height="413" /></a></li>
<li><a href="http://xdebug.org/index.php">Xdebug</a><br />
Xdebug is one of the most popular debugging PHP extensions. It provides a ton of useful data to help you quickly find bugs in your source code. Xdebug plugs right into many of the most popular PHP applications, such as PHPEclipse and phpDesigner.</li>
<li><a href="http://gubed.mccabe.nu/">Gubed PHP Debugger</a><br />
As the name implies, Gubed PHP Debugger is a PHP debugging	tool for hunting down logic errors.</li>
<li><a href="http://www.php-debugger.com/dbg/">DBG</a><br />
DBG is a robust and popular PHP debugger for use in local and remote PHP debugging. It plugs into numerous PHP IDE’s and can easily be used with the command line.</li>
<li><a href="http://www.php-debug.com/www/">PHP_Debug</a><br />
PHP_Debug is an open-source project that gives you useful information about your PHP code that can be used for debugging. It can output processing times of your PHP and SQL, check the performance of particular code blocks and get variable dumps in graphical form, which is great if you need a more visual output than the one given to you by print_r() or var_dump().</li>
<li><a href="http://sourceforge.net/projects/php-dyn/">PHP_Dyn</a><br />
PHP_Dyn is another excellent PHP debugging tool that’s open-source. You can trace execution and get an output of the argument and return values of your functions.</li>
<li><a href="http://www.bluestatic.org/software/macgdbp/">MacGDBp</a><br />
MacGDBp is a live PHP debugger application for the Mac OS. It has all the features you’d expect from a fully featured debugger, such as the ability to step through your code and set breakpoints.</li>
</ul>
<h3>Testing and Optimization Tools</h3>
<ul>
<li><a href="http://www.phpunit.de/">PHPUnit</a><br />
PHPUnit is a complete port of the popular <a href="http://www.junit.org/">JUnit</a> unit testing suite to PHP 5. It’s a tool that helps you test your Web application’s stability and scalability. Writing test cases within the PHPUnit framework is easy; here’s <a href="http://www.phpunit.de/manual/current/en/writing-tests-for-phpunit.html">how	to do it</a>.</li>
<li><a href="http://www.simpletest.org/">SimpleTest</a><br />
SimpleTest is a straightforward unit-testing platform for PHP applications. To get up and running with SimpleTest quickly, read through this pragmatic <a href="http://www.simpletest.org/en/first_test_tutorial.html">tutorial</a> that shows you how to create a new test case.<a href="http://www.simpletest.org/"><img src="http://78.46.108.98/images/powerful-php-tools/simpletest.gif" alt="Simpletest" width="349" height="152" /></a></li>
<li><a href="http://selenium-rc.openqa.org/">Selenium</a><br />
Selenium Remote Control (RC) is a test tool that allows you to write automated Web application UI tests in any programming language against any HTTP website using any mainstream JavaScript-enabled browser. It can be used in conjunction with PHPUnit to create and run automated tests within a Web browser.</li>
<li><a href="http://matrix.squiz.net/developer/tools/php_cs">PHP_CodeSniffer</a><br />
PHP_CodeSniffer is a PHP 5 script for detecting conformance to a predefined PHP coding standard. It’s a helpful tool for maintaining uniform coding styles for large projects and teams.</li>
<li><a href="http://dbug.ospinto.com/">dBug</a><br />
dBug is ColdFusion’s <a href="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p21.htm">cfDump</a> for PHP. It’s a simple tool for outputting data tables that contain information about arrays, classes and objects, database resources and XML resources, making it very useful for debugging purposes.<a href="http://dbug.ospinto.com/"><img src="http://88.198.60.17/images/powerful-php-tools/11_dbug.jpg" alt="dBug - Screenshot" width="306" height="363" /></a></li>
<li><a href="http://www.coderholic.com/php-profile-class/">PHP Profile Class</a><br />
PHP Profile Class is an excellent PHP profiling tool for your Web applications. Using this class will help you quickly and easily gain insight into which parts of your app could use some refactoring and optimization.</li>
</ul>
<h3>Documentation Tools</h3>
<ul>
<li><a href="http://phpdoc.org/">phpDocumentor</a><br />
phpDocumentor (also known as phpdoc and phpdocu) is a documentation tool for your PHP source code. It has an innumerable amount of features, including the ability to output in HTML, PDF, CHM and XML DocBook formats, and has both a Web-based and command-line interface as well as source-code highlighting. To learn more about phpDocumentor, check out the <a href="http://www.phpdoc.org/manual.php">online manual</a>.</li>
<li><a href="http://phpdox.net/">PHP DOX</a><br />
An AJAX-powered PHP documentation search engine that enables you to search titles from all PHP documentation pages.</li>
</ul>
<h3>Security Tools</h3>
<ul>
<li><a href="http://www.phpcaptcha.org/">Securimage</a><br />
Securimage is a free, open-source PHP CAPTCHA script for generating complex images and CAPTCHA codes to protect forms from spam and abuse.</li>
<li><a href="https://trac.anl.gov/scavenger/wiki/WikiStart">Scavenger</a><br />
Scavenger is an open-source, real-time vulnerability management tool. It helps system administrators respond to vulnerability findings, track vulnerability findings and review accepted and false-positive answered vulnerabilities, without “nagging” them with old vulnerabilities.</li>
<li><a href="http://php-ids.org/">PHP-IDS</a><br />
PHP-IDS (PHP-Intrusion Detection System) is a simple-to-use, well-structured, fast and state-of-the-art security layer for your PHP-based Web application.</li>
<li><a href="http://blog.evaria.com/2007/pixy-the-php-security-scanner/">Pixy: PHP Security Scanner</a><br />
Pixy is a Java program that performs automatic scans of PHP 4 source code, aimed to detect XSS and SQL injection vulnerabilities. Pixy takes a PHP program as input and creates a report that lists possible vulnerable points in the program, along with additional information for understanding the vulnerability.</li>
</ul>
<h3>Image Manipulation and Graphs</h3>
<ul>
<li><a href="http://www.maani.us/charts4/">PHP/SWF Charts</a><br />
PHP/SWF Charts is a powerful PHP tool that enables you to create attractive Web charts and graphs from dynamic data. You can use PHP scripts to generate and gather data from databases, then pass it to this tool to generate Flash (SWF) charts and graphs.</li>
<li><a href="http://pchart.sourceforge.net/index.php">pChart &#8211; a chart-drawing PHP library</a><br />
pChart is a PHP class-oriented framework designed to create aliased charts. Most of today’s chart libraries have a cost; this one is free. Data can be retrieved from SQL queries or CSV files or can be manually provided.<a href="http://simplepie.org/"><img src="http://78.46.108.98/images/powerful-php-tools/chart.gif" alt="Chart - Screenshot" width="496" height="234" /></a></li>
<li><a href="http://wideimage.sourceforge.net/wiki/MainPage">WideImage</a><br />
WideImage is a PHP library for dynamic image manipulation and processing for PHP 5. To be able to use the library, you should have the <a href="http://us2.php.net/gd">GD PHP extension</a> installed on your Web server.</li>
<li><a href="http://www.magickwand.org/">MagickWand For PHP</a><br />
MagickWand For PHP is a PHP module suite for working with	the <a href="http://www.imagemagick.org/script/index.php">ImageMagick</a> API, which lets you create, compose and edit bitmap images. It’s a useful tool for quickly incorporating image-editing features in your PHP applications.</li>
</ul>
<h3>PHP Code Beautifier</h3>
<ul>
<li><a href="http://pear.php.net/package/PHP_Beautifier">PHP_Beautifier</a><br />
PHP Beautifier is a PEAR package for automatically	formatting and “beautifying” PHP 4 and PHP 5 source code.</li>
<li><a href="http://www.waterproof.fr/products/phpCodeBeautifier/">PHPCodeBeautifier</a><br />
PHPCodeBeautifier is a tool that saves you from hours of reformatting code to suit your own way of presenting it. A GUI version allows you to process files visually; a command-line version can be batched or integrated with other tools (like CVS, SubVersion, IDE, etc.); and there is also an integrated tool of PHPEdit.</li>
<li><a href="http://qbnz.com/highlighter/">GeSHi &#8211; Generic Syntax Highlighter</a><br />
GeSHi is designed to be a simple but powerful highlighting class, with the goal of supporting a wide range of popular languages. Developers can easily add new languages for highlighting and define easily customizable output formats.</li>
</ul>
<h3>Version-Control Systems</h3>
<ul>
<li><a href="http://phing.info/trac/">Phing</a><br />
Phing is a popular project version-control system for PHP. It is a useful tool for organizing and maintaining different builds of your project.</li>
<li><a href="http://code.google.com/p/xinc/">xinc</a><br />
xinc is a <a href="http://www.martinfowler.com/articles/continuousIntegration.html#EveryCommitShouldBuildTheMainlineOnAnIntegrationMachine">continuous	integration server</a> version-control system written in PHP 5 (i.e. continuous builds instead of nightly builds). It works great with other systems such as <a href="http://subversion.tigris.org/">Subversion</a> and <a href="http://phing.info/">Phing</a>.</li>
</ul>
<h3>Useful Extensions, Utilities and Classes</h3>
<ul>
<li><a href="http://simplepie.org/">SimplePie</a><br />
SimplePie is a PHP class that helps you work with RSS	feeds. Check out the online <a href="http://simplepie.org/demo/">RSS and Atom feed reader</a>, which demonstrates a simple Web application that uses SimplePie.<a href="http://simplepie.org/"><img src="http://88.198.60.17/images/powerful-php-tools/spie.jpg" alt="SimplePie - Screenshot" width="480" height="392" /></a></li>
<li><a href="http://htmlpurifier.org/">HTML Purifier</a><br />
HTML Purifier is a standards-compliant HTML filter library written in PHP. HTML Purifier not only removes all malicious code (better known as XSS) with a thoroughly audited, secure yet permissive white list, it also makes sure your documents are standards-compliant. Open source and highly customizable.</li>
<li><a href="http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf">TCPDF</a><br />
TCPDF is an open-source PHP class for generating PDF documents.</li>
<li><a href="http://www.jonasjohn.de/lab/htmlsql.htm">htmlSQL</a><br />
htmlSQL is a unique tool. It is a PHP class for querying	HTML values in an SQL-like syntax. Check out the <a href="http://www.jonasjohn.de/lab/htmlsql/">live demonstration of how htmlSQL works</a>.</li>
<li><a href="http://searchlightdigital.com/the-greatest-php-snippet-file-ever-using-quicktext-for-notepad">The Greatest PHP Snippet File Ever (Using Quicktext for Notepad++)</a><br />
“A little something for all coders: a snippets file that I use for PHP coding. This is designed to be used with Quicktext for Notepad++, but feel free to adapt it to whatever text editor you prefer.”</li>
<li><a href="http://creole.phpdb.org/trac/">Creole</a><br />
Creole is a database abstraction layer for PHP5. It abstracts PHP’s native database-specific API to create more portable code while also providing developers with a clean, fully object-oriented interface based loosely on the API for Java’s JDBC.</li>
<li><a href="http://www.codeplex.com/PHPLinq">PHPLinq</a><br />
LINQ is a component that adds native data querying capabilities to PHP using a syntax reminiscent of SQL. It defines a set of query operators that can be used to query, project and filter data in arrays, enumerable classes, XML, relational databases and third-party data sources. [<a href="http://phpimpact.wordpress.com/2008/05/29/30-useful-php-classes-and-components/">via</a>]</li>
<li><a href="http://www.xm1math.net/phpmathpublisher/">PHPMathPublisher</a><br />
With PhpMathPublisher, you can publish mathematical documents on the Web using only a PHP script (no LaTeX programs on the server and no MathML).<a href="http://www.xm1math.net/phpmathpublisher/"><img src="http://78.46.108.98/images/powerful-php-tools/math.gif" alt="Math - Screenshot" width="302" height="81" /></a></li>
<li><a href="http://www.phpmyadmin.net/home_page/index.php">phpMyAdmin</a><br />
If you’re working with PHP, there’s a big chance you’re set up in a LAMP configuration. phpMyAdmin is Web-based tool for managing, building, importing, exporting and exploring MySQL databases.</li>
<li><a href="http://www.codeplex.com/PHPExcel">PHPExcel</a><br />
PHPExcel is a set of useful PHP classes for working with Microsoft Excel files. PHPExcel allows you to read Excel files and write to them. This is useful for dynamically generating Excel spreadsheets for downloading.</li>
<li><a href="http://p.horm.org/er/">Phormer</a><br />
Phormer is a PHP-based photo gallery management application that helps you to store, categorize and trim your photos online.</li>
<li><a href="http://www.xajaxproject.org/">xajax PHP Class	Library</a><br />
xajax is a PHP class for easily working with PHP AJAX applications. It gives you an easy-to-use API for quickly managing AJAX-related tasks. Check out the <a href="http://www.xajaxproject.org/examples/multiply/multiply.php">xajax Multiplier demo</a> and the <a href="http://www.xajaxproject.org/examples/thewall/thewall.php">Graffiti	Wall demo</a> to see the xajax PHP class in action.</li>
<li><a href="http://phpuserclass.com/">PHP User Class</a><br />
PHP User Class is an excellent script that helps you create a system for user authentication (i.e. registration, log in, account profile, etc.). It’s a useful utility to have around if you require user registration for your Web applications.</li>
<li><a href="http://gtk.php.net/">PHP-GTK</a><br />
PHP-GTK is a PHP extension for the <a href="http://www.gtk.org/">GTK+</a> toolkit (a robust toolkit for developing GUIs). It is a suite of useful OOP functions and classes to help you rapidly build cross-platform, client-side GUI’s for your application.</li>
</ul>
<h3>PHP Online Tools and Resources</h3>
<ul>
<li><a href="http://code.google.com/p/minify/">Minify!</a><br />
Minify is a PHP 5 app that can combine multiple CSS or JavaScript files, compress their content (i.e. remove unnecessary white space and comments) and serve the results with HTTP encoding (via Gzip/deflate) and headers that allow optimal client-side caching. This will help you follow several of Yahoo!’s <a rel="nofollow" href="http://developer.yahoo.com/performance/index.html#rules">Rules for High Performance Websites</a>.<a href="http://code.google.com/p/minify/"><img src="http://88.198.60.17/images/powerful-php-tools/minify.gif" alt="minify - Screenshot" width="550" height="221" /></a></li>
<li><a href="http://en.dklab.ru/lib/HTTP_StaticMerger/">HTTP_StaticMerger: Automatic “merging” of CSS and JavaScript files</a><br />
This library automatically merges sets of static files (CSS or JavaScript) and speeds up page loading (by lowering the number of HTTP queries). It is recommended to use this together with caching reverse-proxy to minimize the response time.</li>
<li><a href="http://www.phpobjectgenerator.com/">PHP Object	Generator</a><br />
PHP Object Generator is an open-source Web-based tool that helps you quickly construct PHP objects and leverage object-oriented programming (OOP) principles in your code.<a href="http://www.phpobjectgenerator.com/"><img src="http://78.46.108.98/images/powerful-php-tools/03_object_generator.jpg" alt="Php Object Generator - Screenshot" width="407" height="481" /></a></li>
<li><a href="http://www.gotapi.com/php">gotAPI/PHP</a><br />
gotAPI is a useful online tool for quickly looking up PHP	functions and classes. Also check out the <a href="http://www.gotapi.com/widgets/compiled/c1_module_php.html">Quick PHP	look-up</a> widget example in case you’d like to include this awesome look-up	feature on your website.<a href="http://www.gotapi.com/php"><img src="http://88.198.60.17/images/powerful-php-tools/04_gotapi.jpg" alt="gotAPI/PHP - Screenshot" width="500" height="312" /></a></li>
<li><a href="http://www.koders.com/">koders</a><br />
koders is a search engine for open-source and downloadable code. It currently has over a billion lines of code indexed and isn’t limited to just PHP.</li>
<li><a href="http://pecl.php.net/">PECL</a><br />
PECL is a directory of all known PHP extensions and a hosting facility for downloading and developing PHP extensions.</li>
</ul>
<h3>In-Browser Tools (Firefox Add-Ons)</h3>
<ul>
<li><a href="http://www.firephp.org/">FirePHP</a><br />
FirePHP is a Firefox extension that allows you to log data	in <a href="http://getfirebug.com/">Firebug</a>. It has a variety of useful logging features, such as the ability to change your error and exception handling on the fly and to log errors directly to the Firebug console. To learn more about what FirePHP can do, check out the FirePHP guide on <a href="http://www.firephp.org/HQ/Use.htm">how to use	FirePHP</a>. For developers using the <a href="http://framework.zend.com/">Zend	PHP framework</a>, you might find this guide on <a href="http://www.christophdorn.com/Blog/2008/09/02/firephp-and-zend-framework-16/">using	 FirePHP with Zend</a> useful.<a href="http://www.firephp.org/"><img src="http://78.46.108.98/images/powerful-php-tools/01_firephp.jpg" alt="FirePHP - Screenshot" width="435" height="271" /></a></li>
<li><a href="http://phplangeditor.mozdev.org/">phpLangEditor</a><br />
phpLangEditor is a very handy Firefox add-on for translating	language files and variables in your script.<a href="http://phplangeditor.mozdev.org/"><img src="http://88.198.60.17/images/powerful-php-tools/02_phplangeditor.jpg" alt="phpLangEditor - Screenshot" width="499" height="287" /></a></li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/3505">PHP	Lookup</a><br />
PHP Lookup is a built-in search bar to help you quickly look	up references to PHP syntax.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/8984">PHP	Manual Search</a><br />
PHP Manual Search is a handy search bar that searches <a href="http://www.php.net/docs.php">official PHP documentation</a> from within	your Web browser.</li>
</ul>
<h3>Frameworks for PHP</h3>
<ul>
<li><a href="http://dwoo.org/">Dwoo</a><br />
Dwoo is a PHP 5 template engine positioned as an alternative to Smarty. It is (nearly) fully compatible with its templates and plug-ins, but it is being written from scratch and is aimed to go one step further with a cleaner code base.</li>
<li><a href="http://codeigniter.com/">CodeIgniter</a><br />
CodeIgniter is a powerful, high-performance, open-source PHP framework that helps you author PHP applications rapidly. CodeIgniter is known for having a light footprint, thereby reducing your server’s work. You can get up and running with CodeIgniter in a jiffy: it has an awesome <a href="http://codeigniter.com/user_guide/">online manual</a>, a couple of helpful <a href="http://codeigniter.com/tutorials/">video tutorials</a> and an active <a href="http://codeigniter.com/forums/">user forum</a>.<a href="http://codeigniter.com/"><img src="http://78.46.108.98/images/powerful-php-tools/codeigniter.jpg" alt="CodeIgniter - Screenshot" width="448" height="251" /></a></li>
<li><a href="http://www.yiiframework.com/">YII Framework</a><br />
Here is a high-performance component-based PHP framework that is supposed to be more efficient than CodeIgniter, CakePHP, ZF and Symfony. An optimal solution for developing large-scale Web applications. Yii supports MVC, DAO/ActiveRecord, I18N/L10N, caching, jQuery-based AJAX support, authentication and role-based access control, scaffolding, input validation, widgets, events, theming and Web services.</li>
<li><a href="http://www.netbeans.org/features/php/index.html">NetBeans</a><br />
A dedicated PHP coding environment and complete integration with web standards. The NetBeans PHP editor is dynamically integrated with NetBeans HTML, JavaScript and CSS editing features such as syntax highlighting and the JavaScript debugger. NetBeans IDE 6.5 fully supports iterative development, so testing PHP projects follows the classic patterns familiar to web developers.</li>
<li><a href="http://www.solarphp.com/">Solar</a><br />
Solar is a PHP 5 development framework for Web applications	derived from the <a href="http://phpsavant.com/">Savant</a> templating engine. Solar uses the MVC architectural pattern and has a host of classes and functions for securing your Web app against SQL injection, cross-website scripting (XSS) and other common exploits.<a href="http://www.solarphp.com/"><img src="http://88.198.60.17/images/powerful-php-tools/solar.jpg" alt="Solar - Screenshot" width="450" height="198" /></a></li>
<li><a href="http://www.symfony-project.org/">symfony</a><br />
symfony is an open-source PHP 5 Web application framework that is well known for its modularity and useful library of classes. To get up and running as fast as possible, you should check out the pragmatic symfony online tutorial called “<a href="http://www.jobeet.org/">The symfony 1.2	advent calendar tutorial</a>,” which takes you through a step-by-step	example of building your own symfony-based Web application.</li>
<li><a href="http://pear.php.net/">PEAR &#8211; PHP Extension and Application Repository</a><br />
PEAR is a popular framework and distribution system for reusable PHP components. The purpose of the framework is to provide a structured library of open-source code for PHP users, a system for code distribution and package maintenance and a standard style for PHP code.</li>
<li><a href="http://propel.phpdb.org/trac/">Propel</a><br />
Propel is an Object-Relational Mapping (ORM) framework for PHP 5. It allows you to access your database using a set of objects, providing a simple API for storing and retrieving data.</li>
<li><a href="http://wiki.limb-project.com/doku.php?id=limb3:en:packages:macro">{{macro}} template engine</a><br />
{{macro}} compiles initial templates into executable PHP scripts with very clean syntax (much cleaner than WACT and Smarty) and executes them very fast. The engine doesn’t use an XML-like syntax; there are only two data scopes, global and local, and no more data sources (all data is displayed with regular PHP variables); and the system supports all WACT features such as templates wrapping and including.<img src="http://78.46.108.98/images/powerful-php-tools/macro.gif" alt="minify - Screenshot" width="450" height="183" /></li>
<li><a href="http://framework.zend.com/">Zend Framework</a><br />
The Zend Framework by <a href="http://www.zend.com/en/company/">Zend Technologies</a> (the creators of PHP’s scripting engine) is a popular PHP Web application framework that embraces the principles of PHP OOP; it’s very extensible and has built-in utilities for working with free Web service APIs, such as those of <a href="http://code.google.com/apis/gdata/">Google</a>, <a href="http://flickr.com/services/">Flickr</a> and <a href="http://aws.amazon.com/">Amazon</a>.</li>
<li><a href="http://www.qcodo.com/">Qcodo</a><br />
Qcodo is an excellent open-source PHP Web application framework. It’s subdivided into two parts: (1) Code Generator, and (2) Qforms. Code Generator handles the creation of object code and PHP and HTML front-end code from your data model. Qforms is an intuitive system for handling and creating complex PHP-driven HTML Web forms. Check out <a href="http://www.qcodo.com/demos/">demos of applications that use Qcodo and	presentational material that covers Qcodo</a>.<a href="http://www.qcodo.com/"><img src="http://88.198.60.17/images/powerful-php-tools/qc.gif" alt="Qcodo - Screenshot" width="528" height="249" /></a></li>
<li><a href="http://www.modernmethod.com/sajax/">SAJAX</a><br />
SAJAX is a JavaScript and AJAX application framework that works well with PHP (as well as several other server-side scripting languages). See SAJAX at work by going to <a href="http://www.modernmethod.com/sajax/sajax-0.12/php/example_wall.php">Wall	live demonstration</a>.</li>
<li><a href="http://www.smarty.net/">Smarty</a><br />
Smarty is a popular PHP templating system to help you separate PHP logic and front-end code (HTML, CSS, JavaScript). It will keep your projects modular and easier to maintain.</li>
<li><a href="http://cakephp.org/">CakePHP</a><br />
CakePHP is one of the leading PHP frameworks for creating robust, fully-featured Web applications. CakePHP has an extensive and well-organized <a href="http://book.cakephp.org/">online manual</a>. If you want to learn via	video tutorials, check out the <a href="http://live.cakephp.org/">CakePHP	screencasts</a>.<a href="http://cakephp.org/"><img src="http://78.46.108.98/images/powerful-php-tools/cake.jpg" alt="CakePHP - Screenshot" width="417" height="180" /></a></li>
<li><a href="http://phpsavant.com/yawiki/">Savant2</a><br />
Savant2 is another popular object-oriented PHP templating system. Instead of a special syntax unique to Savant2, you use PHP syntax to develop your project’s template.</li>
<li><a href="http://www.phpspec.org/">PHPSpec</a><br />
PHPSpec is a simple and intuitive PHP framework. It follows the Behavior-Driven Development principle and therefore allows you to write behavior-oriented code, oftentimes in plain English.</li>
</ul>
<h3>PHP IDEs and Editors</h3>
<ul>
<li><a href="http://www.phpeclipse.com/">PHPEclipse</a><br />
PHPEclipse is a popular PHP source-code editor that is open source and runs on all the major operating systems, such as Windows, Linux and Mac OS. It has all the features you’d expect from a PHP source-code editor, such as code-folding, syntax highlighting, hover-over tool tips and support for XDebug and DBG.<a href="http://www.phpeclipse.com/"><img src="http://88.198.60.17/images/powerful-php-tools/07_php_eclipse.jpg" alt="PHPEclipse - Screenshot" width="445" height="424" /></a></li>
<li><a href="http://www.nusphere.com/products/phped.htm">PhpED</a><br />
PhpED is an excellent IDE for Windows users. It is one of the most robust and feature-packed IDEs currently out on the market and has useful features such as a built-in <a href="http://www.nusphere.com/products/php_profiler.htm">source-code profiler</a> to find bottlenecks in your PHP source code and excellent integration with third-party apps and services just as front-end code validation.<a href="http://www.nusphere.com/products/phped.htm"><img src="http://78.46.108.98/images/powerful-php-tools/08_phped.jpg" alt="PhpED - Screenshot" width="500" height="339" /></a></li>
<li><a href="http://www.mpsoftware.dk/phpdesigner.php">phpDesigner</a><br />
phpDesigner is a lightweight PHP editor/IDE that also handles front-end code and markup remarkably well. Check out the phpDesigner <a href="http://www.mpsoftware.dk/tutorials.php">online tutorials</a>, as well as <a href="http://www.mpsoftware.dk/phpdesigner_screencasts.php">screencasts on phpDesigner</a> to help you learn more about the IDE.<a href="http://www.mpsoftware.dk/phpdesigner.php"><img src="http://88.198.60.17/images/powerful-php-tools/09_phpdesigner.jpg" alt="phpDesigner - Screenshot" width="350" height="300" /></a></li>
<li><a href="http://www.zend.com/en/products/studio/">Zend	Studio</a><br />
Zend Studio is an excellent PHP IDE for Eclipse. It’ll help you develop, deploy and manage Rich Internet Applications (RIAs) in an intuitive interface.<a href="http://www.zend.com/en/products/studio/"><img src="http://78.46.108.98/images/powerful-php-tools/10_zend_studio.jpg" alt="Zend Studio - Screenshot" width="485" height="333" /></a></li>
<li><a href="http://www.aptana.com/php">Aptana PHP</a><br />
Aptana PHP is an open-source IDE extension/plug-in to be used in conjunction with Aptana Studio. To learn more, be sure to check out the <a href="http://www.aptana.com/docs/index.php/PHP">online documentation about	Aptana PHP</a>.</li>
<li><a href="http://www.eclipse.org/pdt/">PDT</a><br />
PDT is a PHP Development Tools framework that’s part of the Eclipse project. PDT includes all the necessary tools for you to create PHP-based Web applications.</li>
<li><a href="http://www.jcxsoftware.com/vs.php">VS.Php</a><br />
VS.Php is a PHP IDE for MS Visual Studio, making it a great IDE for recently converted ASP developers who have used MS VS to develop Web applications. To get you up and running ASAP with VS.Php, check out Jcx.Software’s <a href="http://www.jcxsoftware.com/tutorials.php">online tutorials</a> as well	as its <a href="http://www.jcxsoftware.com/jcx/vsphp/docs">online documentation</a>.</li>
<li><a href="http://www.phpedit.com/">PHPEdit</a><br />
PHPEdit is an excellent PHP editor/IDE with a ton of useful features and a very intuitive user interface. To learn more about why PHPEdit is a good IDE, read the <a href="http://www.phpedit.com/Features/10-reasons-to-use-PHPEdit">10 reasons to	use PHPEdit</a> and view the <a href="http://www.phpedit.com/Features/Screencasts/PHPEdit-3.0-Overview">introductory	screencast about PHPEdit</a>.</li>
</ul>
<h3>Sources and Resources</h3>
<ul>
<li><a href="http://code.google.com/p/phpfr/">PHP Function Reference</a><br />
PHP Function Reference (PHPfr) is a Mac OS X dashboard widget that provides a fast look-up of information about the PHP Web programming language.</li>
<li><a href="http://phpimpact.wordpress.com/2008/05/29/30-useful-php-classes-and-components/">30 Useful PHP Classes and Components</a><br />
30 useful PHP classes and components that you can use to test, develop, debug and deploy your PHP applications.</li>
<li><a href="http://phpadvent.org/2008">PHP advent 2008</a><br />
In December, phpadvent.org collected the wisdom of people in the PHP community who kindly donated their ideas and tips to see us through the new year.</li>
<li><a href="http://www.sitepoint.com/blogs/2008/05/13/useful-in-browser-development-tools-for-php/">Useful in-browser development tools for PHP</a></li>
<li><a href="http://www.phpclasses.org/">PHPClasses.org</a><br />
A huge repository of various PHP classes.</li>
<li><a href="http://mashable.com/2007/09/26/php-toolbox/">PHP Developer’s Toolbox</a><br />
Various PHP-related resources in a brief overview.</li>
</ul>
<h3><a href="http://www.smashingmagazine.com/2009/01/20/50-extremely-useful-php-tools/" target="_blank">smashingmagazine</a></h3>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2F50-extremely-useful-php-tools%2F&amp;partner=sociable" title="Print"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fspotgeek.net%2F50-extremely-useful-php-tools%2F&amp;title=50%20Extremely%20Useful%20PHP%20Tools&amp;bodytext=PHP%20is%20one%20of%20the%20most%20widely%20used%20open-source%20server-side%20scripting%20languages%20that%20exist%20today.%20With%20over%2020%20million%20indexed%20domains%20using%20PHP%2C%20including%20major%20websites%20like%20Facebook%2C%20Digg%20and%20WordPress%2C%20there%20are%20good%20reasons%20why%20many%20Web%20developer" title="Digg"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fspotgeek.net%2F50-extremely-useful-php-tools%2F" title="Sphinn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fspotgeek.net%2F50-extremely-useful-php-tools%2F&amp;title=50%20Extremely%20Useful%20PHP%20Tools&amp;notes=PHP%20is%20one%20of%20the%20most%20widely%20used%20open-source%20server-side%20scripting%20languages%20that%20exist%20today.%20With%20over%2020%20million%20indexed%20domains%20using%20PHP%2C%20including%20major%20websites%20like%20Facebook%2C%20Digg%20and%20WordPress%2C%20there%20are%20good%20reasons%20why%20many%20Web%20developer" title="del.icio.us"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fspotgeek.net%2F50-extremely-useful-php-tools%2F&amp;t=50%20Extremely%20Useful%20PHP%20Tools" title="Facebook"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fspotgeek.net%2F50-extremely-useful-php-tools%2F&amp;title=50%20Extremely%20Useful%20PHP%20Tools" title="Mixx"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fspotgeek.net%2F50-extremely-useful-php-tools%2F&amp;title=50%20Extremely%20Useful%20PHP%20Tools&amp;annotation=PHP%20is%20one%20of%20the%20most%20widely%20used%20open-source%20server-side%20scripting%20languages%20that%20exist%20today.%20With%20over%2020%20million%20indexed%20domains%20using%20PHP%2C%20including%20major%20websites%20like%20Facebook%2C%20Digg%20and%20WordPress%2C%20there%20are%20good%20reasons%20why%20many%20Web%20developer" title="Google Bookmarks"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fspotgeek.net%2F50-extremely-useful-php-tools%2F&amp;title=50%20Extremely%20Useful%20PHP%20Tools&amp;source=SpotGeek.net+Tecnologia+%2C+Programa%C3%A7%C3%A3o+%2C+web+%2C+internet%2C+php&amp;summary=PHP%20is%20one%20of%20the%20most%20widely%20used%20open-source%20server-side%20scripting%20languages%20that%20exist%20today.%20With%20over%2020%20million%20indexed%20domains%20using%20PHP%2C%20including%20major%20websites%20like%20Facebook%2C%20Digg%20and%20WordPress%2C%20there%20are%20good%20reasons%20why%20many%20Web%20developer" title="LinkedIn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.netvibes.com/share?title=50%20Extremely%20Useful%20PHP%20Tools&amp;url=http%3A%2F%2Fspotgeek.net%2F50-extremely-useful-php-tools%2F" title="Netvibes"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2F50-extremely-useful-php-tools%2F&amp;partner=sociable" title="PDF"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://spotgeek.net/feed/" title="RSS"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=50%20Extremely%20Useful%20PHP%20Tools&amp;url=http%3A%2F%2Fspotgeek.net%2F50-extremely-useful-php-tools%2F" title="Slashdot"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fspotgeek.net%2F50-extremely-useful-php-tools%2F&amp;title=50%20Extremely%20Useful%20PHP%20Tools" title="StumbleUpon"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=50%20Extremely%20Useful%20PHP%20Tools%20-%20http%3A%2F%2Fspotgeek.net%2F50-extremely-useful-php-tools%2F" title="Twitter"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://spotgeek.net/50-extremely-useful-php-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH2 &amp; PHP Howto Guide: SSH Connections Made Easy in PHP</title>
		<link>http://spotgeek.net/ssh2-php-howto-guide-ssh-connections-made-easy-in-php/</link>
		<comments>http://spotgeek.net/ssh2-php-howto-guide-ssh-connections-made-easy-in-php/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 15:36:18 +0000</pubDate>
		<dc:creator>Filipe Teixeira</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ssh2]]></category>

		<guid isPermaLink="false">http://spotgeek.net/?p=140</guid>
		<description><![CDATA[PHP doesn&#8217;t come with native support for making SSH connections via the libssh2 libraries. You must use the PECL SSH2 extensions. Installing them can be tricky, but Kevin van Zonneveld does a great job explaining how to install them over here. So I won&#8217;t go there. The new version, 0.11.0, also seems to be compiling [...]]]></description>
			<content:encoded><![CDATA[<p>PHP doesn&#8217;t come with native support for making SSH connections via the <a href="http://www.libssh2.org/">libssh2</a> libraries.  You must use the <a href="http://pecl.php.net/package/ssh2">PECL SSH2 extensions</a>.  Installing them can be tricky, but <a href="http://kevin.vanzonneveld.net/techblog/">Kevin van Zonneveld</a> does a great job explaining how to install them <a href="http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/">over here</a>.  So I won&#8217;t go there.  The new version, 0.11.0, also seems to be compiling more reliably for everyone.</p>
<p>Unfortunately, the library is sparsely documented, <em>and</em> still buggy in some places.  And most of the comments posted on <a href="http://us.php.net/ssh2">http://www.php.net/ssh2</a> are just plain wrong!  Kudos to <a href="mailto:mikesul@php.net">Mike Sullivan</a> for fixing some of the issues with non-blocking I/O (And let&#8217;s not forget to thank Sara Golemon for writing it to begin with!). I list the most conspicuous problems at the bottom of this blog entry for interested parties. Everyone else can use our wrappers to smooth over some of the kinks and make most common tasks trivial to perform.</p>
<h2>Our wrapper is released under GNU license and can be used, for example, as follows:</h2>
<pre>$php_ssh2 = new SSH2('YOURHOST.COM');
$php_ssh2-&gt;loginWithPassword('YOUR_LOGIN', 'YOUR_PASSWORD');
echo $php_ssh2-&gt;execCommandBlock('find /cat/food');</pre>
<h2>All Pertinent Features:</h2>
<pre>$php_ssh2-&gt;execCommandBlockNoOutput()</pre>
<p>allows execution of a script ignoring output. Note that without blocking execution manually, 2 ssh2_execs will execute asychronously. So it <em>should also be used for shell scripts that have no output</em>.  Why?  If you never check for data, it will never block — yes, even in blocking mode!  This is subtle … until it clicks.</p>
<pre>$php_ssh2-&gt;setLogReads($setting = true)</pre>
<p>enables or disables read logging on the current SSH2 stream.</p>
<pre>$php_ssh2-&gt;setLogWrites($setting = true)</pre>
<p>enables or disables write logging on the current SSH2 stream.</p>
<pre>$php_ssh2-&gt;getShell($set_blocking = false, $term_type = 'vt102' ... )</pre>
<p>opens a shell for the user — generally not needed and much harder to work with.</p>
<pre>$php_ssh2-&gt;waitPrompt($prompt_regex = '&gt; $', &amp;$buf = '', $timeout_secs = 0)</pre>
<p>waits for a specified prompt $prompt_regex (expressed as a regular expression) for $timeout_secs (or 0 to block forever). Returns true or false, leaves response (whether matching or not) buffer in &amp;$buf parameter.</p>
<pre>$php_ssh2-&gt;writePrompt($command, $add_newline = true)</pre>
<p>writes the specified output to stream.  Returns what it was able to write.</p>
<p>The rest of the functions are fairly self-explanatory.  Check out the library here —<br />
<a href="http://www.seoegghead.com/software/ssh2-php-wrappers.seo">http://www.seoegghead.com/software/ssh2-php-wrappers.seo</a></p>
<h2>Problems/Gotchas I&#8217;ve Observed in PECL SSH2</h2>
<p><strong>1.</strong> Non-blocking mode buggy and/or coredumps in versions &lt; 0.11.0.  So make sure you upgrade.<br />
<strong>2.</strong> FreeBSD Ports currently reports a patched &#8220;usr/ports/security/pecl-ssh2? version 0.10.0 as 0.11.0 (Not strictly a PECL SSH2 problem, but worth noting as it caused me grief).<br />
<strong>3.</strong> stream_set_timeout() does not work at all with SSH2 streams — silently always returns false.<br />
<strong>4.</strong> stream_select() does not work with SSH2 streams — but prints a warning.<br />
<strong>5.</strong> One must pass NULL to $pty — not false (like some comments on php.net claim), not &#8220;&#8221; — otherwise LFs (&#8220;\n&#8221;) will get changed to CRLFs (&#8220;\r\n&#8221;). Text files will mostly survive this, but binary data will be corrupted! This took us a solid hour to debug and involved a hex-editor.</p>
<p>As a consequence of some of the above, there is no good way to do non-blocking I/O in versions &lt; 0.11.0. Period. No timeouts, no polling, no selecting. If you need non-blocking I/O to work reliably, you <em>must</em> upgrade to 0.11.0.</p>
<p><a href="http://www.seoegghead.com/blog/seo/ssh2-php-howto-guide-ssh-connections-made-easy-in-php-p343.html" target="_blank">seoeggheadv</a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fssh2-php-howto-guide-ssh-connections-made-easy-in-php%2F&amp;partner=sociable" title="Print"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fspotgeek.net%2Fssh2-php-howto-guide-ssh-connections-made-easy-in-php%2F&amp;title=SSH2%20%26%23038%3B%20PHP%20Howto%20Guide%3A%20SSH%20Connections%20Made%20Easy%20in%20PHP&amp;bodytext=PHP%20doesn%27t%20come%20with%20native%20support%20for%20making%20SSH%20connections%20via%20the%20libssh2%20libraries.%20%20You%20must%20use%20the%20PECL%20SSH2%20extensions.%20%20Installing%20them%20can%20be%20tricky%2C%20but%20Kevin%20van%20Zonneveld%20does%20a%20great%20job%20explaining%20how%20to%20install%20them%20over%20here.%20%20So%20" title="Digg"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fspotgeek.net%2Fssh2-php-howto-guide-ssh-connections-made-easy-in-php%2F" title="Sphinn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fspotgeek.net%2Fssh2-php-howto-guide-ssh-connections-made-easy-in-php%2F&amp;title=SSH2%20%26%23038%3B%20PHP%20Howto%20Guide%3A%20SSH%20Connections%20Made%20Easy%20in%20PHP&amp;notes=PHP%20doesn%27t%20come%20with%20native%20support%20for%20making%20SSH%20connections%20via%20the%20libssh2%20libraries.%20%20You%20must%20use%20the%20PECL%20SSH2%20extensions.%20%20Installing%20them%20can%20be%20tricky%2C%20but%20Kevin%20van%20Zonneveld%20does%20a%20great%20job%20explaining%20how%20to%20install%20them%20over%20here.%20%20So%20" title="del.icio.us"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fspotgeek.net%2Fssh2-php-howto-guide-ssh-connections-made-easy-in-php%2F&amp;t=SSH2%20%26%23038%3B%20PHP%20Howto%20Guide%3A%20SSH%20Connections%20Made%20Easy%20in%20PHP" title="Facebook"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fspotgeek.net%2Fssh2-php-howto-guide-ssh-connections-made-easy-in-php%2F&amp;title=SSH2%20%26%23038%3B%20PHP%20Howto%20Guide%3A%20SSH%20Connections%20Made%20Easy%20in%20PHP" title="Mixx"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fspotgeek.net%2Fssh2-php-howto-guide-ssh-connections-made-easy-in-php%2F&amp;title=SSH2%20%26%23038%3B%20PHP%20Howto%20Guide%3A%20SSH%20Connections%20Made%20Easy%20in%20PHP&amp;annotation=PHP%20doesn%27t%20come%20with%20native%20support%20for%20making%20SSH%20connections%20via%20the%20libssh2%20libraries.%20%20You%20must%20use%20the%20PECL%20SSH2%20extensions.%20%20Installing%20them%20can%20be%20tricky%2C%20but%20Kevin%20van%20Zonneveld%20does%20a%20great%20job%20explaining%20how%20to%20install%20them%20over%20here.%20%20So%20" title="Google Bookmarks"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fspotgeek.net%2Fssh2-php-howto-guide-ssh-connections-made-easy-in-php%2F&amp;title=SSH2%20%26%23038%3B%20PHP%20Howto%20Guide%3A%20SSH%20Connections%20Made%20Easy%20in%20PHP&amp;source=SpotGeek.net+Tecnologia+%2C+Programa%C3%A7%C3%A3o+%2C+web+%2C+internet%2C+php&amp;summary=PHP%20doesn%27t%20come%20with%20native%20support%20for%20making%20SSH%20connections%20via%20the%20libssh2%20libraries.%20%20You%20must%20use%20the%20PECL%20SSH2%20extensions.%20%20Installing%20them%20can%20be%20tricky%2C%20but%20Kevin%20van%20Zonneveld%20does%20a%20great%20job%20explaining%20how%20to%20install%20them%20over%20here.%20%20So%20" title="LinkedIn"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.netvibes.com/share?title=SSH2%20%26%23038%3B%20PHP%20Howto%20Guide%3A%20SSH%20Connections%20Made%20Easy%20in%20PHP&amp;url=http%3A%2F%2Fspotgeek.net%2Fssh2-php-howto-guide-ssh-connections-made-easy-in-php%2F" title="Netvibes"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fspotgeek.net%2Fssh2-php-howto-guide-ssh-connections-made-easy-in-php%2F&amp;partner=sociable" title="PDF"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://spotgeek.net/feed/" title="RSS"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=SSH2%20%26%23038%3B%20PHP%20Howto%20Guide%3A%20SSH%20Connections%20Made%20Easy%20in%20PHP&amp;url=http%3A%2F%2Fspotgeek.net%2Fssh2-php-howto-guide-ssh-connections-made-easy-in-php%2F" title="Slashdot"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fspotgeek.net%2Fssh2-php-howto-guide-ssh-connections-made-easy-in-php%2F&amp;title=SSH2%20%26%23038%3B%20PHP%20Howto%20Guide%3A%20SSH%20Connections%20Made%20Easy%20in%20PHP" title="StumbleUpon"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=SSH2%20%26%23038%3B%20PHP%20Howto%20Guide%3A%20SSH%20Connections%20Made%20Easy%20in%20PHP%20-%20http%3A%2F%2Fspotgeek.net%2Fssh2-php-howto-guide-ssh-connections-made-easy-in-php%2F" title="Twitter"><img src="http://spotgeek.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://spotgeek.net/ssh2-php-howto-guide-ssh-connections-made-easy-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
