Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use WinSCP as my ftp client. I have used it countless times on different web hosts via ftp without any problems....except my own web hosting.

The problem is that when I attempt to edit or upload a file that is larger then about 10K, it appears to minify the file by removing line breaks and spaces in the code. This is pretty problematic when it comes to PHP files as it produced a syntax error.

My hosting is running cPanel (if thats relevant), although I have used it without any problem on other cPanel web hosts.

I was wondering if anyone knew what the problem was or an idea? My web host is ran by a friend who is pretty clueless when it comes to this sort of stuff.

share|improve this question
    
Probably your FTP client did not transfer the file in binary mode and some server size processing messed it up. –  billc.cn Oct 20 '12 at 11:34
    
The answer is almost certainly going to be "find out what your web host or web application did to the file when you uploaded it". If your web hosting provider is really "pretty clueless" then you're unlikely to get very far, unfortunately. –  Michael Hampton Oct 20 '12 at 14:07
add comment

1 Answer

There's three possibilities I see here - firstly, it may be a consequence of using ASCII rather than binary mode - you might want to switch modes. The second is its some server side wierdness, but that is out of our hands. The third would be to try another client to rule out client wierdness. I never had any issues with winscp when I was using it, but wouldn't hurt to see if filezilla, or cyberduck (my personal favourite) would work better.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.