note 105944 added to amqpconnection.construct

From: Date: Tue, 27 Sep 2011 10:45:00 +0000
Subject: note 105944 added to amqpconnection.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-183469@lists.php.net to get a copy of this message
A simply function that help manage connections to AMQP server. It works fine in debian wheezy php 5.3.8. Change Login & Password value at your plasure. (Host will be the default value = 127.0.0.1). <?php function amqp_connection() { $connection = new AMQPConnection(); $connection->setLogin('guest'); $connection->setPassword('guest'); $connection->connect(); if (!$connection->isConnected()) { echo "Cannot connect to the broker"; } return $connection; } //Next manage the connection with $connection var function ... $connection=amqp_connection(); ... ?> ---- Server IP: 69.147.83.197 Probable Submitter: 155.185.212.161 ---- Manual Page -- http://www.php.net/manual/en/amqpconnection.construct.php Edit -- https://master.php.net/note/edit/105944 Del: integrated -- https://master.php.net/note/delete/105944/integrated Del: useless -- https://master.php.net/note/delete/105944/useless Del: bad code -- https://master.php.net/note/delete/105944/bad+code Del: spam -- https://master.php.net/note/delete/105944/spam Del: non-english -- https://master.php.net/note/delete/105944/non-english Del: in docs -- https://master.php.net/note/delete/105944/in+docs Del: other reasons-- https://master.php.net/note/delete/105944 Reject -- https://master.php.net/note/reject/105944 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183469) next »