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!
|