Hi all. My 2 cents.
1). Major IDE have an option - trim trailing spaces. Atleast ZDE does, i'm using it and I have no problems with spaces (although I tend to use only <?php and don't put ?> at the end of file) 2). Extension is really a bad idea because many frameworks tend to use .inc extension for included files. My applications have only one file with .php extension - that's index.php. 3). BOM is a pain, but really parser could just trim it out if it's present. As for me, I use Unicode without BOM (ZDE doesn't place BOM, Visual Studio has an encoding named "UTF-8 (without BOM)". Most editors also deal with this issue in similar manner, so just see the settings. So, leave it as is. Better spend time on learning PHP, MySQL and related techologies than think about such unimportant and mostly silly things. Arvid.