An excellent guide for PHP programmers who wish to make their code more secure
http://phpsec.org/projects/guide/