Submitted by Ravage on Wed, 13/02/2008 - 15:39
Com esta volta ao PHP vêm as pesquisas, leituras, experiências, o costume!
Numa destas rondas encontrei uma biblioteca em PHP capaz de remover todo ou quase todo o lixo ou código malicioso (não é que seja mau, é apenas malicioso!) do HTML, como bónus ainda tenta torná-lo correcto.
Refiro-me ao HTML Purifier
HTML Purifier is a standards-compliant HTML filter library written in PHP. HTML Purifier will not only remove all malicious code (better known as XSS) with a thoroughly audited, secure yet permissive whitelist, it will also make sure your documents are standards compliant, something only achievable with a comprehensive knowledge of W3C's specifications. Tired of using BBCode due to the current landscape of deficient or insecure HTML filters? Have a WYSIWYG editor but never been able to use it? Looking for high-quality, standards-compliant, open-source components for that application you're building? HTML Purifier is for you!
Submitted by Ravage on Wed, 13/02/2008 - 09:28
Voltei a pegar no PHP para um pequeno projecto e praticamente ainda não fiz nada. Melhor dizendo, nada de interesse para a aplicação em questão.
Ando perdido no mundo das frameworks e no paradigma MVC, acho deveras tudo muito interessante mas custa-me a largar velhos hábitos e entrar na coisa... No entanto, optei por essa via e vou segui-la.
Submitted by Ravage on Wed, 12/09/2007 - 16:14
Since we installed MacPorts, let's put it to good use and install Apache2 and PHP5 to replace versions bundled with OS X.
To make PHP database aware and more useful, we will be installing Mysql, PostgreSQL, SQLite and PEAR as extensions, along with many others built by default by MacPorts.