"php|architect's Guide to PHP Security" - читать интересную книгу автора (Ilia Alshanetsky, Rasmus Lerdorf)