Go Back   FlashFXP Forums > > >

Suggestions Post suggestions for upcoming versions

 
 
Thread Tools Display Modes
Old 03-01-2005, 03:20 PM   #1
forefront
Junior Member
FlashFXP Registered User
 
Join Date: Jan 2005
Posts: 2
Default Smarter Auto Mode

A problem I am having in general with any FTP client I've used is the ability of the client to automatically determine when it should make transfers in ASCII or binary mode in auto mode -- correctly.

A very specific problem is that developers often encode portions of their software products with Zend or Ioncube. I am familiar with PHP scripts encoded with Zend.

I am looking for a way to have .php files checked for the presence of: <?php @Zend on line 1 and then make the transfer in binary mode. If @Zend is not present on line 1, then the transfer should be done in ASCII mode.

It seems like a special addition to the "auto" transfer mode could be added to the product to do this sort of thing ...

When transferring files of type: *.php
check line: n
to see if it contains: xxxxxxxxx
and if it does, transfer the file in: < Binary/ASCII >

In my example, it would look like this ---

When transferring files of type: *.php
check line: 1
to see if it contains: @Zend
and if it does, transfer the file in: Binary

A whole set of rules like this would greatly tailor the software to any individual user. I would love it!
forefront is offline  
Old 03-02-2005, 08:25 AM   #2
Hetfield
Senior Member
FlashFXP Scripter
 
Join Date: Nov 2002
Posts: 334
Default

This is not as easy to implement as you describe i'm afraid. If you would want this to work you would actually need 2 transfers for each file. The first "transfer" would only get the first few bytes to check the header basically, then FlashFXP would need to initiate the second transfer to get the file in the appropiate mode. This kind of overhead would be out of the question if you ask me.
Hetfield is offline  
Old 03-02-2005, 10:08 AM   #3
DayCuts
Senior Member
FlashFXP Beta Tester
 
Join Date: Dec 2003
Posts: 421
Default

I don't think your suggestion is very reliable either, who is to say that '@Zend' for example will be on line 1. For any reason at all there could be something else first, or even a blank line.
DayCuts is offline  
Old 03-02-2005, 10:04 PM   #4
forefront
Junior Member
FlashFXP Registered User
 
Join Date: Jan 2005
Posts: 2
Default

It must be on line 1 ... as long as the line contains @Zend, some portion of the content that follows is encoded.
forefront is offline  
Old 03-15-2005, 01:32 PM   #5
quibbler
Junior Member
FlashFXP Registered User
 
Join Date: Mar 2005
Posts: 2
Default

This is the single feature I'd also like to see in FlashFXP.

Working with a lot of Zend encoded files, it is unfortunate I need to switch to alternate program merely for this task when I find FlashFXP the superior and preferred choice for all other FTP tasks.

>=0/
quibbler is offline  
Old 03-15-2005, 03:59 PM   #6
Linkster
Moderator
Administrator
 
Join Date: Oct 2001
Location: New Mexico, USA
Posts: 1,070
Default

just remove .php from the ascii list. there is no reason all php files can't be sent in binary mode.
Linkster is offline  
Old 03-15-2005, 04:07 PM   #7
quibbler
Junior Member
FlashFXP Registered User
 
Join Date: Mar 2005
Posts: 2
Default

W00t! Turns out to be a very effective visit to the support forum!

Thank you kindly for your support.
quibbler is offline  
 

Tags
auto, ftp, mode, problem, zend

Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleted Profile On Flash rouil General Discussion 0 04-02-2005 09:03 PM


All times are GMT -5. The time now is 08:33 AM.

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