As I struggle around trying to get EE2 working and bump into others encountering similar problems I decided to look a little closer into the ASCII versus Binary question.
This is interesting because for my FTP client (Transmit V3) the default ASCII file extensions are are provided as;
.c, .cgi, .cp, .cpp, .css, .h, .hqx, .htaccess, .htm, .html, .java, .l, .m, .p, .pas, .php, .php3, .pl, .pm, .py, .rb, .sh, .shtml, .txt, .uu, .uue and .y
Interestingly given that all sorts of faults I see are javascript related, there’s no .js in this list.
So, two questions;
1) should javascript files as included in the EE2 distribution be uploaded as ASCII or binary; and,
2) if they’re wrapped up into a .zip file (binary) and unpacked by the cPanel File Manager (as a binary archive) does this exempt them from these considerations (ie they’ll emerge in the required format automatically)?
Thanks in advance for your thoughts.
Jules
////////////////////////////////////
As a footnote and despite much comment on this subject both in the EE documentation (.js = ASCII) elsewhere on the threads like this from the developer of smartftp
Then go to Settings->Transfer->ASCII/Binary and click on “Set Defaults”
This should remove everything but .pl files (from) the ASCII list.
On the other side of the argument comes a defence of ASCII predicated upon the view that, in the case of *NIX boxes in particular, ASCII lets the FTP server set the line endings to LF whereas Binary has them hard coded into the last byte (maybe as CRLF) and this can cause difficulties.
ASCII Files
.htm .html .shtml .php .pl .cgi .js .cnf .css
.forward .htaccess .map .pwd .txt .grp .ctlBinary Files
.jpg .gif .png .tif .exe .zip .sit .rar .ace
.class .mid .ra .avi .ocx .wav .mp3 .au
Via Google