AMQPConnection
PHP Manual

AMQPConnection::connect

(・ミ。シ・ク・逾ハ、キ。」、ェ、ス、鬢ッ SVN ネヌ、ヒ、キ、ォツクコ゚、キ、ハ、、、ヌ、キ、遉ヲ)

AMQPConnection::connectEstablish a connection with the AMQP broker.

タ篶タ

public bool AMQPConnection::connect ( void )

This method will initiate a connection with the AMQP broker.

・ム・鬣癸シ・ソ

、ウ、ホエリソヒ、マ・ム・鬣癸シ・ソ、マ、「、熙゙、サ、」

ハヨ、�ヘ

タョクキ、ソセ�遉ヒ TRUE 、「シコヌヤ、キ、ソセ�遉ヒ FALSE 、ヨ、キ、゙、ケ。」

ホ�

ホ�1 AMQPConnection::connect() example

<?php

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

// set the login details
$cnn->setLogin('mylogin');
$cnn->setPassword('mypass');

if (
$cnn->connect()) {
    echo 
"Established a connection to the broker";
}
else {
    echo 
"Cannot connect to the broker";
}


?>


AMQPConnection
PHP Manual