downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

AMQPConnection::setPort> <AMQPConnection::setLogin
[edit] Last updated: Wed, 22 May 2013

view this page in

AMQPConnection::setPassword

(PECL amqp >= Unknown)

AMQPConnection::setPasswordパスワードを設定する

説明

public bool AMQPConnection::setPassword ( string $password )

このメソッドは、AMQP ブローカへの接続に使うパスワードを設定します。

パラメータ

password

AMQP ブローカの認証に使うパスワード文字列。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

エラー / 例外

password が 32 文字より長い場合に AMQPConnectionException をスローします。

例1 AMQPConnection::setPassword() の例

<?php

/* 新しい接続を作成します */
$cnn = new AMQPConnection();

// パスワードを設定します
$cnn->setPassword('mypassword');

?>



add a note add a note User Contributed Notes AMQPConnection::setPassword - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites