leon28oslo:
Yoho, I found the actuall problem, Filezilla does not transfer .php files correctly with standard configuration.
This is not a problem I've ever experienced, and I've been using filezilla on a daily basis for almost as long as I can remember.
leon28oslo:
When I used a separate program for editing the .php files, no problems :)
Aha. That'll be the problem. Nothing really to do with filezilla transfers, it is the editor being used, and the choice of editors can be defined under edit->settings->FileEditing
I suspect that you are running Windows, which will probably default to using the standard 'notepad' editor (perhaps even wordpad. Eeek). This editor does cause problems with .php files because it causes double spaced lines due to the EOL (end of line) differences between windows and *nix systems. Most people tend to recommend using notepad++ to mitigate this issue, however, if you have another preference that you know doesn't cause the EOL problems then by all means use that. It is just a matter of telling filezilla which editor you wish to use by default. (I guess this is what you mean by the filezilla 'standard configuration').
Hopefully this provides a little more clarity in regards to what is actually happening.
Cheers
Rod