PEAR Manual
Prev |  | Next

# Net_NNTP_Client::`authenticate`()

Net_NNTP_Client::`authenticate`() -- Authenticate

## Synopsis

require_once 'Net/NNTP/Client.php';

publicboolean`Net_NNTP_Client::authenticate` string`$user` string`$pass` integer`$authmode = `NET_NNTP_AUTHORIGINAL``

## Description

Authenticate on an already open connection

## Parameter

- `$user` - Username to authenticate with

- `$pass` - Password to authenticate with

- `$authmode` - Type of authentication. Default=`NET_NNTP_AUTHORIGINAL`

## Return value

`boolean` - Returns `TRUE` on success, PEAR_Error on failure.

## Note

This function can not be called statically.

## See

Net_NNTP_Client::`connectAuthenticated`()

Prev | Home | Next
Constants | Up | Net_NNTP_Client::connect()