php scripts php autoresponder scripts
Home | *** AUTORESPONDER DISCOUNT and SPECIALS *** | Testimonials | Knowledgebase | Order | Contact Us
  

AUTOMATIC RESPONDERS:
COMPARE AUTORESPONDERS:
CLICK TRACKING:
FREE PHP SCRIPTS:
RSS Pages

Category Menu


User menu


Compare Free/Basic/Pro Autoresponders


ASCII or BINARY modes? Which one to use?

 

What are ASCII and BINARY modes?



ASCII is the standard method of exchanging information between the computers. It uses 7 bits in a standard byte and holds text.

BINARY is the number system based on number 2. It uses all 8 bits in a byte and can hold images along with text.


Why do we need to worry about transfering the files?



While uploading files from our computers to web sites, most of the times we are transfering the information between two different operating systems. Ex: Our Windows PC to Linux servers. So these different systems see the files at different angles especially at the end of the line and end of the document characters.

So if this part of the file is not transfered properly, you will get script errors like:

* 500 internal server error
* Premature end of script headers
* File is corrupted error
* Incomplete file transfers etc.


Knowing which file is which.



ASCII: As a rule of thumb, all the files that you CAN open in a Notepad needs ASCII mode transfer.

Examples:
* .txt (with no unicode like international language characters)
* .html
* .htm
* .shtml
* .php
* .js
* .cgi
* .pl
* .xml
* .rtf
* .asp

EXCEPTION TO THIS RULE: Microsoft word docuements (.doc) should be uploaded in BINARY.

BINARY: All the files that you CAN NOT open in a Notepad needs BINARY mode transfer.

Examples:
* .txt (with unicode)
* .doc
* .jpg
* .gif
* .png
* .jpeg
* .bmp
* .exe
* .pdf
* .dll
* .zip


How to set up your ftp software?



The example shown here is for WS_FTP PRO software. But all ftp software have these options. You need to look into your software userguide to see where these options are located.

1. Open up your WS_FTP PRO.
2. Highlight the website name on left side.
3. Click on 'Edit' button right side > 'Startup' tab > You will see the options.



ascii and binary modes

 


ASCII mode: Uploads all files in ASCII mode
BINARY mode: Uploads all files in BINARY mode
AUTO: Automatic selection of mode based on your ftp software settings

 


ascii and binary modes

4. Go to 'Options' > 'Extentions' tab > you will be able to add the file extentions there which are uploaded in ASCII by your software. If you do lot of uploading, then it will be better to tell your software which files you need to upload in ASCII.

 

 

 

 




(c) Radhika
http://www.scripts4webmasters.com/index.php
Home of PHP Autoresponder Software!
Article details:
Author: admin
Posted: 2011-03-18 23:17:42
Number of Views: 658
Keywords: ascii mode, ascii transfer, auto mode, binary mode, binary transfer, file extention uploading, ftp upload mode, php file upload, text file upload, uploading files
Print article
Print article
This will open up a new window with a more printer friendly version of the article.
Attachments:

No attachments.








Add to: | |

All softwarebox images are for illustrative purposes only. Software is downloadable.
You actually don't receive any physical CDs or boxes.

Terms and Conditions | Private policy | Antispam policy
Sitemaps: HTML Sitemap | RSS Sitemap
Scripts4webmasters.com. Copyright 2001 - Present. (c). All Rights Reserved.


  Scripts4webmasters.com :: Home of PHP Autoresponder!
  Download Free Article Publisher and Content management script!