Comment Re:Crap site (Score 2, Informative) 305
There is a good guide available not specifically for PHP, but general secure web developement. I'm not the author and don't know where to link to his site or the latest guide but here's a mirror of it.
Best Practices for Secure Web Development By Razvan Peteanu