PHP Security Consortium

This link contains lots of useful documents on securing php.  One is in the form of a project, then articles and also a library of published material.