do i upload in ASCII or binary?
thanks :)
do i upload in ASCII or binary?
thanks :)
Files ending in .php, .html, .css, .htaccess, .txt, etc should normally be uploaded in ascii.
Image files should be uploaded in binary.
Most good FTP programs automatically handle selecting the right option for you nowadays.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
The reply from Dr.B is technically correct, but personally I use binary for all filetypes.
The reason is simple. Binary mode will transfer files without modifying them in any way no matter what the filetype is.
Ascii Mode on the other hand will often modify EOL (end of line) characters, which is generally fine for true ASCII files, but can be fatal for any other filetype.
.
Just my 2cents worth.
Cheers
Rod
Rod makes a good point. Something worth considering especially if you find your files get double-spaced after uploading and/or downloading them using your FTP program.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks