Net_FTP::checkFileExtension()

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

Synopsis

require_once 'Net/FTP.php';

integer Net_FTP::checkfileextension (string $filename)

Beschreibung

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

Rückgabewert

int - either FTP_ASCII or FTP_BINARY.

Fehler-Meldungen

No errors. Always a filetransfermode should be returned.

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

Beispiel