Opened 21 years ago

Last modified 17 years ago

#1768 closed Feature request

Zend Encoded PHP File Detection

Reported by: psiphere Owned by:
Priority: normal Component: FileZilla Client
Keywords: Cc: psiphere, Alexander Schuch
Component version: Operating system type:
Operating system version:

Description

I posted this in the forum too before I found this feature
suggest box. You can delete the forum post if you like.

I have never seen an FTP program that can do this
before but if you could have yours auto detect zend
encoded php files and maybe a checkbox in options to
turn this feature on or off when the program comes to a
file that is php extention it will read the first few bytes
and decide whether or not it's zend encoded and then
automatically upload it in binary format instead of ascii
(like the rest of the non-encoded php files).

Change History (1)

comment:1 by Alexander Schuch, 17 years ago

Automatic ASCII/binary transfer mode detection works by examine the extention of the file to be tranferred. It is not possible to decide transfer mode by file content. A file on a server shouldn't be downloaded first just to check if it is binary or text, just to be downloaded again using the proper mode.

The best and most secure way is to transfer all files in binary. PHP can handle scripts with any line-ending, and nearly all editors do as well nowadays.

Note: See TracTickets for help on using tickets.