3

I want to download php files from my sever with Filezilla, in order to back them up and to back them up on my computer. So before making any change of code I'd be certain to have the lastest version that used to work. When tired at night, it is too easy to overwrite an existing file.

But when I download files, they open up in Notepad++ with a blank line between each line of code. It is not readable anymore and it makes a 800 lines page a 1600 one ! Removing each blank line one by one turns you mad.

Is there a quick way to remove blank lines afterwards or a way to keep this from happening?

Thanks

SunnyOne
  • 197
  • 5
  • 15

3 Answers3

9

I was experiencing the same problem. Change transfer file type setting of filezilla to binary and it won't give blank lines anymore.

Here is how to do it:

Go to Edit > Settings > Transfers > File Types

There you can select Binary transfer.

Ari
  • 4,643
  • 5
  • 36
  • 52
1

You may have this problem because you are reading the file as a UNIX file while it was created by a windows system.

If your server is a UNIX system you should use a replace. Put \r as search, leave the replace empty and select the extended research.

n1xx1
  • 1,971
  • 20
  • 26
0

Thanks. I found out the simplest way to do it.

Just do NOT right click EDIT on your remote file

( if your files are set to open automaticaly with Notepad++, a blank line will be inserted after every single line of code )

Instead :

  • Create a copy folder of your pubic_html on your HD
  • Transfer a copy of all your files to this folder with Filezilla.
  • ->>>The back up will be done in seconds and all php files will open normaly in Notepad++
SunnyOne
  • 197
  • 5
  • 15