The basic PHP security tips
1. During the development process use proper error reporting
2. Filter all data from external sources.
3. never trust your users input
4. Protect against SQL injection
5. watch for cross site scripting attack in user input.