Log in
▼
Keep me signed in
Sign up
HOME
DOWNLOAD
PURCHASE
SUPPORT
PORTAL
FORUM
CONTACT US
News & Information
Suggestions & Feedback
General Discussions
FlashFXP Forums
>
Tickets
>
FlashFXP Bug Reports
Site does not upload PHP files in BINARY properly
Tickets
Search
Today's Posts
Mark Forums Read
Project: FlashFXP Bug Reports
Ticket Tools
ID:
325
Category:
FlashFXP Bug
Title:
Site does not upload PHP files in BINARY properly
Status:
Closed (Not a bug)
Severity:
Major
Version:
3.6 Final
Junior Member
ike8
01-13-2010, 11:51 PM
Site does not upload PHP files in BINARY properly
Hello,
I am attempting to upload PHP files that have been encoded with ionCube / Zend. I have the session set to BINARY, the perm. settings set to BINARY, have removed .php and .php3 from the ASCII list, and restarted FlashFXP.
However, when uploading PHP files as BINARY, the files are corrupted and do not function properly. If I upload as BINARY in two other FTP clients, the files work fine and the site loads.
ike8
View Public Profile
Find all posts by ike8
Super Duper
MxxCon
01-14-2010, 01:03 AM
Re: Site does not upload PHP files in BINARY properly
does the session log show files being uploaded in
TYPE I
or
TYPE A
?
what build of flashfxp?
__________________
[Sig removed by Administrator: Signature can not exceed 20GB]
MxxCon
View Public Profile
Find all posts by MxxCon
Junior Member
ike8
01-14-2010, 01:58 AM
Re: Site does not upload PHP files in BINARY properly
Hello,
Thanks for responding. When uploading, it shows:
[R] TYPE I
[R] 200 TYPE is now 8-bit binary
My exact version is 3.6.0 (build 1240)
Thanks.
ike8
View Public Profile
Find all posts by ike8
FlashFXP Developer
bigstar
01-14-2010, 06:42 AM
Re: Site does not upload PHP files in BINARY properly
If the php files were saved in windows text format and the ftp server is linux based it may have problems reading the php files properly. They need to be uploaded in ASCII mode or re-saved in unix text format.
bigstar
View Public Profile
Visit bigstar's homepage!
Find all posts by bigstar
Junior Member
ike8
01-14-2010, 11:35 AM
Re: Site does not upload PHP files in BINARY properly
Quote:
Originally Posted by
bigstar
If the php files were saved in windows text format and the ftp server is linux based it may have problems reading the php files properly. They need to be uploaded in ASCII mode or re-saved in unix text format.
The PHP files were saved in Mac OS X / Unix format and upload with other FTP clients, e.g., Coda and Transmit on a Mac and AceFTP on a PC, without any issue. Any other possibilities?
ike8
View Public Profile
Find all posts by ike8
Junior Member
ike8
01-14-2010, 05:47 PM
Re: Site does not upload PHP files in BINARY properly
Any other options or things I can check/try? I love FlashFXP and I don't want to use another FTP client, but I frequently have to upload PHP files in BINARY in order to install my software for customers...
ike8
View Public Profile
Find all posts by ike8
Super Duper
MxxCon
01-14-2010, 08:58 PM
Re: Site does not upload PHP files in BINARY properly
post full session log so that we can see what's going on
__________________
[Sig removed by Administrator: Signature can not exceed 20GB]
MxxCon
View Public Profile
Find all posts by MxxCon
Junior Member
ike8
01-15-2010, 01:38 PM
Re: Site does not upload PHP files in BINARY properly
[R] Connecting to XXXXX.com -> DNS=XXXXX.com IP=1.2.3.4 PORT=21
[R] Connected to XXXXX.com
[R] 220 (vsFTPd 2.0.5)
[R] USER brian
[R] 331 Please specify the password.
[R] PASS (hidden)
[R] 230 Login successful.
[R] SYST
[R] 215 UNIX Type: L8
[R] FEAT
[R] 211-Features:
[R] EPRT
[R] EPSV
[R] MDTM
[R] PASV
[R] REST STREAM
[R] SIZE
[R] TVFS
[R] 211 End
[R] CWD /home/brian/XXXXX.com/pmr/includes/functions/Zend
[R] 250 Directory successfully changed.
[R] PWD
[R] 257 "/home/brian/XXXXX.com/pmr/includes/functions/Zend"
[R] TYPE I
[R] 200 Switching to Binary mode.
[R] PASV
[R] 227 Entering Passive Mode (1,2,3,4,56,171)
[R] Opening data connection IP: 1.2.3.4 PORT: 14507
[R] STOR auth.php
[R] 150 Ok to send data.
[R] 226 File receive OK.
Transferred: auth.php 14 KB in 0.09 seconds (156.2 KB/s)
[R] PASV
[R] 227 Entering Passive Mode (1,2,3,4,126,66)
[R] Opening data connection IP: 1.2.3.4 PORT: 32322
[R] STOR graph.php
[R] 150 Ok to send data.
[R] 226 File receive OK.
Transferred: graph.php 27 KB in 0.14 seconds (193.8 KB/s)
[R] PASV
[R] 227 Entering Passive Mode (1,2,3,4,35,111)
[R] Opening data connection IP: 1.2.3.4 PORT: 9071
[R] STOR packages.php
[R] 150 Ok to send data.
[R] 226 File receive OK.
Transferred: packages.php 6 KB in 0.08 seconds (87.1 KB/s)
[R] PASV
[R] 227 Entering Passive Mode (1,2,3,4,122,189)
[R] Opening data connection IP: 1.2.3.4 PORT: 31421
[R] STOR uk-zip.php
[R] 150 Ok to send data.
[R] 226 File receive OK.
Transferred: uk-zip.php 4 KB in 0.08 seconds (59.4 KB/s)
[R] PASV
[R] 227 Entering Passive Mode (1,2,3,4,82,81)
[R] Opening data connection IP: 1.2.3.4 PORT: 21073
[R] STOR zip.php
[R] 150 Ok to send data.
[R] 226 File receive OK.
Transferred: zip.php 4 KB in 0.08 seconds (59.0 KB/s)
[R] TYPE A
[R] 200 Switching to ASCII mode.
[R] PASV
[R] 227 Entering Passive Mode (1,2,3,4,189,139)
[R] Opening data connection IP: 1.2.3.4 PORT: 48523
[R] LIST -al
[R] 150 Here comes the directory listing.
[R] 226 Directory send OK.
[R] List Complete: 506 bytes in 0.13 seconds (4.0 KB/s)
Transfer queue completed
Transferred 5 files totaling 57 KB in 3.48 seconds (123.6 KB/s)
ike8
View Public Profile
Find all posts by ike8
Junior Member
ike8
01-15-2010, 07:02 PM
Re: Site does not upload PHP files in BINARY properly
Did anyone have a chance to review the session log and if so, does anyone see anything wrong with it?
ike8
View Public Profile
Find all posts by ike8
Super Duper
MxxCon
01-15-2010, 10:09 PM
Re: Site does not upload PHP files in BINARY properly
hmm, logs look fine.
i wonder if ftp server is somehow overriding binary mode.
after you upload those files, are they the same size to the byte on the server as locally or different?
if different, then i think this ftp server is overriding binary mode. to confirm this, if you can, try uploading those same files to a different server, the one that doesn't use vsftpd.
if file size is identical, then i suspect your local files are already corrupted.
can you post session log from any of your other ftp clients that you say correctly upload these files?
__________________
[Sig removed by Administrator: Signature can not exceed 20GB]
MxxCon
View Public Profile
Find all posts by MxxCon
Junior Member
ike8
01-18-2010, 07:31 PM
Re: Site does not upload PHP files in BINARY properly
Hello,
Thanks, you were absolutely right. The FTP server that I was getting the error on was overriding it for some reason. When I disabled vsftpd and used proftpd, it worked fine. However, strangely enough, I am able to FTP to vsftpd with my Mac FTP client and upload the files without problems but the ftpd is definitely interfering somehow. Either way, I'm going to just leave proftpd installed as that seems to be a solution. Thanks for your persistence.
ike8
View Public Profile
Find all posts by ike8
Ticket Tools
Subscribe to this Ticket
Posting Rules
You
may not
post new tickets
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Powered by
vS-Bug Tracker v2.1.0 for vBulletin 3.5.x - 3.8.x
Copyright © 2006 - 2024,
VisionScripts
All times are GMT -5. The time now is
04:32 PM
.
-- FlashFXP Default
---- FlashFXP Dynamic Width
-- Mobile
Archive
-
Privacy Statement
-
Top
Parts of this site powered by
vBulletin Mods & Addons
from DragonByte Technologies Ltd. (
Details
)
Copyright © 1999-2016 OpenSight Software, LLC. All Rights Reserved.
Powered by vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Promote FlashFXP on your website and get paid for it!