public function size($remoteFile)
    {
        $size = @ftp_size($this->connection, $remoteFile);

        if ($size === -1) {
            throw new Exception('Unable to get file size');
        }

        return $size;
    }
public function size($remoteFile)
    {
        $size = @ftp_size($this->connection, $remoteFile);

        if ($size === -1) {
            throw new Exception('Unable to get file size');
        }

        return $size;
    }
public function size ( $ remoteFile ) { $ size = @ ftp_size ( $ this -> connection , $ remoteFile ) ; if ( $ size === - 1 ) { throw new Exception ( 'Unable to get file size' ) ; } return $ size ; }
Returns the size of the given file.
Return -1 on error

@param string $remoteFile

@return int
Returns the size of the given file . Return - 1 on error