TinyPortal

General => Chit chat => Topic started by: Freddy on August 26, 2011, 09:24:38 PM

Title: Extra line feeds in FTP'd files.
Post by: Freddy on August 26, 2011, 09:24:38 PM
I've been curious about this for a while.  Sometimes when I download a file from my server using FTP, I get a file with extra line feeds, sometimes quite a few between each line.  Does anyone else get that or know why that may be. At first I thought it was due to hacking but I don't think it is.

It's easy to repair with Notepad++, but I still wonder why it happens.  :-\
Title: Re: Extra line feeds in FTP'd files.
Post by: IchBin on August 26, 2011, 09:56:56 PM
I'm not sure which program is causing it, but it's usually caused by an editor not treating the line/carriage returns improperly. That's why in notepad++ you can convert the line endings to fix it. Not sure what exactly the cause of it. I've noticed the same problem on this site when opening many of the files.
Title: Re: Extra line feeds in FTP'd files.
Post by: Skhilled on August 26, 2011, 11:56:47 PM
I've noticed it over the past few years myself. Never found out what was causing it but assumed it was a server issue. Sometimes, it happens while other times it does not. Then again, I've noticed that it only seems to happen on certain servers.
Title: Re: Extra line feeds in FTP'd files.
Post by: Freddy on August 27, 2011, 01:20:36 PM
Thanks guys, well at least it seems like nothing to worry about. I thought it might be FileZilla, but who knows.
Title: Re: Extra line feeds in FTP'd files.
Post by: Lesmond on August 27, 2011, 04:46:37 PM
When you say file I assume you mean a php/text file? but I cant say that I have ever seen this before Rog, and I have used filezilla for a few years now.
Title: Re: Extra line feeds in FTP'd files.
Post by: Freddy on August 27, 2011, 05:08:55 PM
Yes php files mainly.  I'm just guessing Les.
Title: Re: Extra line feeds in FTP'd files.
Post by: IchBin on August 27, 2011, 09:29:03 PM
It's usually the text editor that causes it. When line endings are treated differently, then the file is saved it shows all borked up when open with an editor that doesn't treat the line endings the same way. I've seen editors do it all too often.
Title: Re: Extra line feeds in FTP'd files.
Post by: Skhilled on August 27, 2011, 09:33:08 PM
I strictly use Filezilla over the past 2 years but have also seen it happen with conTEXT. The last server I was on it happened a lot but only twice so far on the one I'm on now. But then again, I 've upgraded Filezilla a few times since then.