Net_FTP::size()

Net_FTP::size()

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

Description

gives you the size of a file bytes.

Parameter

  • string $file - The file to check.

Return value

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

Throws

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.

Note

This function can not be called statically.

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