integer Net_FTP::checkfileextension (
string $filename
)
This method checks a given filename for its proper transfermode (using extensions.ini). If the file extension can not be found, the class falls back to the standard transfer mode (attribute).
string $filename
-
The filename to check extension for.
int
- either FTP_ASCII or FTP_BINARY.
No errors. Always a filetransfermode should be returned.
This function can not be called statically.
Using checkFileExtension()
<?php
var_dump($test->checkfileextension('foo/bar.zip'));
?>