public function setOption($option, $value)
    {
        switch ($option) {
            case FTPClient::TIMEOUT_SEC:
                if ($value <= 0) {
                    throw new Exception('Timeout value must be greater than zero');
                }
                break;

            case FTPClient::AUTOSEEK:
                if (!is_bool($value)) {
                    throw new Exception('Autoseek value must be boolean');
                }
                break;
            
            default:
                throw new Exception('Unsupported option');
                break;
        }

        return @ftp_set_option($this->connection, $option, $value);
    }
public function setOption($option, $value)
    {
        switch ($option) {
            case FTPClient::TIMEOUT_SEC:
                if ($value <= 0) {
                    throw new Exception('Timeout value must be greater than zero');
                }
                break;

            case FTPClient::AUTOSEEK:
                if (!is_bool($value)) {
                    throw new Exception('Autoseek value must be boolean');
                }
                break;
            
            default:
                throw new Exception('Unsupported option');
                break;
        }

        return @ftp_set_option($this->connection, $option, $value);
    }
public function setOption ( $ option , $ value ) { switch ( $ option ) { case FTPClient :: TIMEOUT_SEC : if ( $ value <= 0 ) { throw new Exception ( 'Timeout value must be greater than zero' ) ; } break ; case FTPClient :: AUTOSEEK : if ( ! is_bool ( $ value ) ) { throw new Exception ( 'Autoseek value must be boolean' ) ; } break ; default : throw new Exception ( 'Unsupported option' ) ; break ; } return @ ftp_set_option ( $ this -> connection , $ option , $ value ) ; }
Set miscellaneous runtime FTP options
TIMEOUT_SEC | AUTOSEEK

@param mixed $option
@param mixed $value

@return mixed
Set miscellaneous runtime FTP options TIMEOUT_SEC | AUTOSEEK