Skip to content

Instantly share code, notes, and snippets.

Avatar

Sling00 sling00

  • USA
View GitHub Profile
@andypiper
andypiper / amqpget.php
Created Jun 25, 2012
RabbitMQ test scripts
View amqpget.php
<?php
$cnn = new AMQPConnection();
$cnn->setLogin("guest");
$cnn->setPassword("guest");
$cnn->setHost("localhost");
if ($cnn->connect()) {
echo "Established a connection to the broker\n";
}