After having developed in PHP for many years I've realized that the two most important things a developer can do are:
- disable register_globals
- set the error reporting to show all errors during development & testing:
Those two simple changes will greatly help reduce problems in your code. Now to just get all OSS developers to do the same...