| |||||||||||
| |||||||||||
FTP - how not to corrupt data (binary v ascii)
Greetings from Aylesbury ... where I am spending much of this week during the day giving a Linux (LAMP) course, and much of the evening catching up on work. So just a brief tip today ..
If you're transferring files with FTP, remember to specify Binary mode!. Perhaps advise you've heard before and not fully understood why or perhaps - like most of us - something you've heard, forgotten, and then transferred a file to find that your hard-gotten data is corrupted. In the default (ASCII) mode of transfer between windows and Linux / Unix systems, FTP translates new line sequences c/r, l/f to just l/f, or vice versa - thus effectively corrupting zip files, tar files, etc. It's made the worse by the fact that the mapping doesn't exactly reverse when you transfer the file the other way ... so a transfer from Linux to Windows in ASCII, followed by a transfer back also in ASCII leaves you with a corrupted file (written 2008-06-24 22:25:46) Associated topics are indexed under W501 - Introduction to Web Site Structure
Some other Articles
Conversion of c/r line ends to l/f line endsSome sideways thoughts on the news cannot restore segment prot after reloc message - PHP / httpd Virtual Hosting on Apache httpd - a primer example FTP - how not to corrupt data (binary v ascii) Short circuit evaluation (lazy operator) in Lua Two PHP include files to make easy web site indexing and navigation Plenty of car parking at Well House Manor, Hotel, Melksham Accounts in PHP - an OO demo Adding a button to a web page to print the page 1759 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36 at 50 posts per pageThis is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price. Link to Ezine home page (for reading). Link to Blogging home page (to add comments). |
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho | |||||||||||