This method checks a given filename for it's proper transfermode (using extensions.ini). if the file extension can not be found, the class falls back to the standard transfer mode (attribute).
Parameter
string $filename - The filename to check extension for.
Return value
int - either FTP_ASCII or FTP_BINARY.
Throws
No errors. Always a filetransfermode should be returned.
Deliver First Class Web Sites: 101 Essential Checklists Want to learn how to make your web sites usable and accessible? Want to ensure that your sites meet current best practice, without spending hours trawling through incomprehensible specifications and recommendations from dozens of different books, research papers, and web sites? Want to make sure that the sites you build are "right the first time," requiring no costly redevelopments?