risolto!
era il bom dell'utf-8 che non si vedeva con il notepad.
Bastava salvare i file php in ansii col notepad.

C'est la vie...