AMQPConnection::setPassword

(PECL amqp >= Unknown)

AMQPConnection::setPasswordSet the password.

Descrição

public bool AMQPConnection::setPassword ( string $password )

This method will set the password string used to connect to the AMQP broker.

Parâmetros

password

The password string used to authenticate with the AMQP broker.

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em caso de falha.

Erros

Throws an AMQPConnectionException if password is longer then 32characters.

Exemplos

Exemplo #1 AMQPConnection::setPassword() example

<?php

/* Create a new connection */
$cnn = new AMQPConnection();

// set the password
$cnn->setPassword('mypassword');

?>

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top