Net_FTP::size()

Net_FTP::size() -- returns the size in bytes of a file.

Synopsis

require_once 'Net/FTP.php';

mixed Net_FTP::size (string $file)

Beschreibung

gives you the size of a file bytes.

Parameter

Rückgabewert

mixed - the size of the given file on success, otherwise PEAR::Error.

Fehler-Meldungen

The returned PEAR_Error object in case of an error is unspecific. You can ignore the errornumber and errormessage, because only "Connection failed" will be returned if the connection fails.

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

Beispiel