PHP Security hardening

Check this article by Sektion Eins