0
I am transferring files through (FILEZILLA FTP Client) from my local machine that runs XAMPP/Windows8, but when placing the file on the LINUX server the files suffer a variation in 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, no errors
The question is:
Is this change in file size when transferring normal? And why does this happen?
Maybe at the time of transfer the characters
\r
are removed. Also note that Windows has "size" and "disk size". I removed the php tag as the problem does not involve it. I just won’t try to formulate a friendly answer, because your question is off-topic.– Guilherme Nascimento
I did the test I passed a file via ASCII and the size was equal and there was no loss of
\r
, the only thing that is different is the disk size, in Windows: size: 15.9 KB (16,359 bytes)/disk size: 16.0 KB (16,384 bytes) --- Server: 16,359 bytes so I believe you’re just looking in the wrong place.– Guilherme Nascimento
@Guilhermenascimento is not the disk size, it is the same size by clicking on file properties by windows it shows the same size in bytes as Filezilla.
– rafaelphp
@Guilhermenascimento I tested in ASCII and Binary and it worked. You have to transfer in Binary to be equal.
– rafaelphp
Your file is using
\r\n
or\n
for line breaks? If using\r\n
, try downloading the file from the server that is smaller and see if it recovers the original size. If the size has returned to the original, then I believe it may be your FTP application that is having "some" problem. I am using Filezilla 3.10.3– Guilherme Nascimento
This is not a question directly related to programming and is to be removed. Consider using one of the other network.
– Guill