(・ミ。シ・ク・逾ハ、キ。」、ェ、ス、鬢ッ SVN ネヌ、ヒ、キ、ォツクコ゚、キ、ハ、、、ヌ、キ、遉ヲ)
AMQPConnection::connect — Establish a connection with the AMQP broker.
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";
}
?>