Go Back   FlashFXP Forums > >

General Discussion Need help? Have a problem? Let us help you. Bug reports and feature requests should be made using the Bug Tracker or Feature Tracker

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 12-18-2013, 01:41 AM   #1
DJAndre
Junior Member
FlashFXP Registered User
 
DJAndre's Avatar
 
Join Date: Mar 2004
Location: San Diego, CA
Posts: 12
Default

Something I'd like to point out.

The original php file on my computer is formatted as UNIX--that's what it states at the bottom of Notepad++. Plus when I create such files myself, that is the formatting I always select.

When I upload the php file using FLASHFXP from my PC to the server, I can still check the formatting on the server and it's still UNIX formatting for that file--plus if I open that file directly on the server, no blank spaces between the lines.

When I download the same file using FLASHFXP from the server to my PC, it then indicates as Macintosh as the formatting in Notepad++, which would be (my guess) the equivalent to the "Old Mac" formatting setting/option in Notepad++ (Preferences > New Document > Format).

So I assume that FlashFXP changes that formatting somehow?

Here is a Session LOG when I transfer such PHP file from the server to my PC:. (I X'd my username and login information to my site--to avoid hack attempts.)

Please let me now if you can suggest a fix? Thanks in advance.

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 XXXXXXXX -> IP=XXXXXXXXX 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 01:18. 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 XXXXXX
[R] 331 User XXXXXXXX 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: 3571, Waiting for connection.
[R] PORT 192,168,1,108,13,243
[R] 200 PORT command successful
[R] MLSD
[R] 150 Connecting to port 2040
[R] 226-Options: -a -l 
[R] 226 56 matches total
[R] List Complete: 6 KB in 0.37 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: 3572, Waiting for connection.
[R] PORT 192,168,1,108,13,244
[R] 200 PORT command successful
[R] MLSD
[R] 150 Connecting to port 2041
[R] 226-Options: -a -l 
[R] 226 56 matches total
[R] List Complete: 6 KB in 0.35 second (6.1 KB/s)
[R] PWD
[R] 257 "/public_html" is your current location
[R] TYPE A
[R] 200 TYPE is now ASCII
[R] PORT 192,168,1,108,13,245
[R] 200 PORT command successful
[R] RETR index.php
[R] 150-Connecting to port 2042
[R] 150 6.0 kbytes to download
[R] 226-File successfully transferred
[R] 226 0.000 seconds (measured here), 55.45 Mbytes per second
Download: index.php 6 KB in 0.00 second (6.1 KB/s)
Transfer queue completed
Transferred 1 File (6 KB) in 0.43 second (6.1 KB/s)
__________________
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
DJAndre is offline  
Old 12-18-2013, 08:51 AM   #2
MxxCon
Super Duper
FlashFXP Beta Tester
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 3,882
Default

Quote:
Originally Posted by DJAndre View Post
The original php file on my computer is formatted as UNIX--that's what it states at the bottom of Notepad++. Plus when I create such files myself, that is the formatting I always select.
So that's the problem.
FlashFXP assumes that local text files are formatted with Windows newline char.
Quote:
Originally Posted by DJAndre View Post
So I assume that FlashFXP changes that formatting somehow?
Code:
[R] TYPE A
[R] 200 TYPE is now ASCII
[R] PORT 192,168,1,108,13,245
[R] 200 PORT command successful
[R] RETR index.php
TYPE A is a command that tell server a server transfer will be of a text file and to adjust newline characters.
Since your files already match newline chars of the destination server, such files should be transferred unchanged using "IMAGE" mode.
There 2 ways of doing that.
Either in preferences you can change it from Auto to Binary. But that means all files will always be transferred unchanged. Even the ones that should be converted.
Or if your .php files are always in UNIX format but you are not sure about other text files, go to 'Options' menu, 'Filters', and remove extensions of the files stored in UNIX format.
__________________
[Sig removed by Administrator: Signature can not exceed 20GB]
MxxCon is offline  
Closed Thread

Tags
download, flashfxp, ftp, set, upload

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:42 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)