View Single Post
Old 12-18-2013, 02:22 PM  
DJAndre
Junior Member
 
DJAndre's Avatar
 
Join Date: Mar 2004
Location: San Diego, CA
Posts: 12
Default

I've recently read that switching to Binary can corrupt some files during transfer.

Here is something I don't quite understand. When I upload the UNIX file to the server it stays intact. No changes. So the filter for PHP to be transferred as ASCII is working.

But when I download from the server to my PC, that's when the file gets changed, even though it's the same setting for the transfer. Something has to give? How come other transfer tools are not having this issue? (i.e. MS FrontPage, FileZilla, CPanel, and even Windows built in FTP browser).

So just as an experimentation, I deleted from the ASCII filter the extension .php. I then transferred a file from the server to my PC and no more double spaces in between, but it did change the formatting from UNIX to Windows/DOS. Below is the Session Log for the download:

Code:
FlashFXP 4.4.3 (build 2029)
Support Forums http://forum.flashfxp.com
Winsock 2.2 -- OpenSSL 1.0.1e 11 Feb 2013
[R] Connecting to XXXXXXXXX -> IP=XXXXXXXX PORT=21
[R] Connected to XXXXXXXXXXX
[R] 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
[R] 220-You are user number 1 of 46 allowed.
[R] 220-Local time is now 14:41. Server port: 21.
[R] 220-IPv6 connections are also welcome on this server.
[R] 220 You will be disconnected after 15 minutes of inactivity.
[R] USER XXXXXXX 
[R] 331 User XXXXX OK. Password required
[R] PASS (hidden)
[R] 230 OK. Current restricted directory is /
[R] SYST
[R] 215 UNIX Type: L8
[R] FEAT
[R] 211-Extensions supported:
[R]  EPRT
[R]  IDLE
[R]  MDTM
[R]  SIZE
[R]  MFMT
[R]  REST STREAM
[R]  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
[R]  MLSD
[R]  AUTH TLS
[R]  PBSZ
[R]  PROT
[R]  ESTA
[R]  PASV
[R]  EPSV
[R]  SPSV
[R]  ESTP
[R] 211 End.
[R] PWD
[R] 257 "/" is your current location
[R] CWD /public_html
[R] 250 OK. Current directory is /public_html
[R] PWD
[R] 257 "/public_html" is your current location
[R] Listening on PORT: 3604, Waiting for connection.
[R] PORT 192,168,1,108,14,20
[R] 200 PORT command successful
[R] MLSD
[R] 150 Connecting to port 2110
[R] 226-Options: -a -l 
[R] 226 57 matches total
[R] List Complete: 6 KB in 0.32 second (6.2 KB/s)
[R] CWD /public_html
[R] 250 OK. Current directory is /public_html
[R] PWD
[R] 257 "/public_html" is your current location
[R] Listening on PORT: 3605, Waiting for connection.
[R] PORT 192,168,1,108,14,21
[R] 200 PORT command successful
[R] MLSD
[R] 150 Connecting to port 2111
[R] 226-Options: -a -l 
[R] 226 57 matches total
[R] List Complete: 6 KB in 0.32 second (6.2 KB/s)
[R] TYPE I
[R] 200 TYPE is now 8-bit binary
[R] PORT 192,168,1,108,14,22
[R] 200 PORT command successful
[R] RETR index.php
[R] 150-Connecting to port 2112
[R] 150 6.0 kbytes to download
[R] 226-File successfully transferred
[R] 226 0.000 seconds (measured here), 54.30 Mbytes per second
Download: index.php 5 KB in 0.00 second (6.0 KB/s)
Transfer queue completed
Transferred 1 File (5 KB) in 0.41 second (6.0 KB/s)
I also plan to test what happens when I transfer a UNIX php file to the server, to see if that formatting also changes?

Update: Transferring the UNIX php file to the server from my PC, still stays as UNIX. Below is the session log for the upload.

Code:
FlashFXP 4.4.3 (build 2029)
Support Forums http://forum.flashfxp.com
Winsock 2.2 -- OpenSSL 1.0.1e 11 Feb 2013
[R] Connecting to XXXXXX -> IP=XXXXXXXXX PORT=21
[R] Connected to XXXXXXXXX
[R] 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
[R] 220-You are user number 1 of 46 allowed.
[R] 220-Local time is now 14:44. Server port: 21.
[R] 220-IPv6 connections are also welcome on this server.
[R] 220 You will be disconnected after 15 minutes of inactivity.
[R] USER XXXXXXX
[R] 331 User XXXXXXX OK. Password required
[R] PASS (hidden)
[R] 230 OK. Current restricted directory is /
[R] SYST
[R] 215 UNIX Type: L8
[R] FEAT
[R] 211-Extensions supported:
[R]  EPRT
[R]  IDLE
[R]  MDTM
[R]  SIZE
[R]  MFMT
[R]  REST STREAM
[R]  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
[R]  MLSD
[R]  AUTH TLS
[R]  PBSZ
[R]  PROT
[R]  ESTA
[R]  PASV
[R]  EPSV
[R]  SPSV
[R]  ESTP
[R] 211 End.
[R] PWD
[R] 257 "/" is your current location
[R] CWD /public_html
[R] 250 OK. Current directory is /public_html
[R] PWD
[R] 257 "/public_html" is your current location
[R] Listening on PORT: 3635, Waiting for connection.
[R] PORT 192,168,1,108,14,51
[R] 200 PORT command successful
[R] MLSD
[R] 150 Connecting to port 2113
[R] 226-Options: -a -l 
[R] 226 56 matches total
[R] List Complete: 6 KB in 0.32 second (6.1 KB/s)
[R] CWD /public_html
[R] 250 OK. Current directory is /public_html
[R] PWD
[R] 257 "/public_html" is your current location
[R] Listening on PORT: 3636, Waiting for connection.
[R] PORT 192,168,1,108,14,52
[R] 200 PORT command successful
[R] MLSD
[R] 150 Connecting to port 2114
[R] 226-Options: -a -l 
[R] 226 56 matches total
[R] List Complete: 6 KB in 0.32 second (6.1 KB/s)
[R] TYPE I
[R] 200 TYPE is now 8-bit binary
[R] MLST testfile.php
[R] 550 Can't check for file existence
[R] PORT 192,168,1,108,14,53
[R] 200 PORT command successful
[R] STOR testfile.php
[R] 150 Connecting to port 2115
[R] 226-File successfully transferred
[R] 226 0.226 seconds (measured here), 25.49 Kbytes per second
Upload: testfile.php 5 KB in 0.23 second (5.8 KB/s)
[R] MFMT 20131218193229 /public_html/testfile.php
[R] 213 UTIME OK
Transfer queue completed
Transferred 1 File (5 KB) in 0.83 second (5.8 KB/s)
Now to solve why the formatting changes from UNIX to Windows/DOS when being transferred from server to PC.

I consulted with a PHP developer and he said that perhaps FileZilla fixed this issue on their end, because most PHP devs use that "free" platform than FlashFXP. So of course that issue was reported to FileZilla devs about this issue and they must have fixed it on their end. FlashFXP devs perhaps need to catch up with this issue.

FileZilla does not change the formatting when I download the UNIX files to my PC. They stay intact in the same formatting.
__________________
My System Info:

App: FlashFXP 4.4.3 (build 2029) [registered]
OS: WinXP Pro
Router: Linksys WRT54G build 5
Firewall: COMODO
Anti-Virus: AVAST
Network: Broadband
ISP: cox.net

Last edited by DJAndre; 12-18-2013 at 02:48 PM.
DJAndre is offline