I am building a website for my employer, and for the past few days uploading files has been a real nuisance.
For example, I upload a .php file from my local drive to the server. When loaded in a web browser, the file doesn't render correctly as it did on my local server, so I check the contents of the .php file and notice that many of the lines of code were converted to a single line. Upon inspection, I see that newline characters in parts of the .php file have been removed, but newlines in other parts of the file are intact. A single commented-out line ends up disabling a large chunk of code, rendering it corrupted.
It seems as though the server is trying to compact the data to conserve space when the file is uploaded. Does anyone know what would be causing this, and maybe how to fix it?
Also to note: my web host (HostMonster) just migrated our site to a new server a few days ago.