Net_FTP::checkFileExtension()

Net_FTP::checkFileExtension()

Net_FTP::checkFileExtension() -- check extensions.ini for the transfermode of a specific file.

Description

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.

Note

This function can not be called statically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.