File size in windows and linux [closed]

0

I am transferring files through the (FILEZILLA FTP Client) of my local machine running XAMPP / Windows8, but when placing the file on the LINUX server the files undergo a variation of size.

Ex:

c:\xampp\htdocs\app\arquivo.php :: Filesize 3.110 kb no windows
#apos fazer o upload par o servidor linux fica assim:
/home/app/public_html/arquivo.php :: Filesize 3.018 kb no linux 

The file remains the same, runs the normal script, without errors

The question is:

Is this a change in the size of the file when it is transferred? And why does this happen?

    
asked by anonymous 23.04.2015 / 20:41

1 answer

1

It looks like you are doing a text-mode transfer and Filezilla is changing the characters that indicate the Windows default line ("\ r \ n") to Linux ("\ n").

Try changing the transfer mode to binary. So the file will retain the original size and format.

Same file, different file size

ASCII vs. Binary vs. Auto?

DOS vs. Unix Line Endings

    
23.04.2015 / 21:01