Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED Where do all the empty lines come from?
#1
Hi,

please look at this funny screenshot from my WAMP installation. The header.inc.php file that's shown comes from the web installation, where it has no empty lines between the code lines, just downloaded to the local installation and opened in the Getsimple Template Editor. And suddenly, every second line is empty.

   

Does anybody know the reason?

Hypertexter
Reply
#2
(2018-09-20, 03:37:37)Hypertexter Wrote: Hi,

please look at this funny screenshot from my WAMP installation. The header.inc.php file that's shown comes from the web installation, where it has no empty lines between the code lines, just downloaded to the local installation and opened in the Getsimple Template Editor. And suddenly, every second line is empty.



Does anybody know the reason?

Hypertexter

Maybe the spaces are caused by your FTP-Program.

Alex
Reply
#3
@Alexander_

You are so completely right!

It was the ASCII transfer mode of Filezilla, that made funny things with the files. PHP looks like text files, but is not just text files.

I switched to binary mode and I got rid of these empty lines - and of those annoying little differences in file size locally and on the server...

Thank you!

Hypertexter
Reply




Users browsing this thread: 1 Guest(s)