Here's another weird problem I have had, trying to get the BCRA web pages to run on the new server...
I eventually realised that - for what reason I do not know - it had been created with MAC-style line endings (i.e. hex 0D). when I converted these to PC-style (0D0A) it ran without error. (Perhaps Unix-style line endings of 0A would also have worked? - let's just see: yes they do work).
Im assuming - guessing - that the old server I was running the BCRA site on ws either Windows-based or had some property set somewhere to map line endings.