qq1591118132
一个人的天气
2017-09-14 14:22

运行php文件报错,新手求指教

10
  • php

<?php

require_once('./php-amqplib/amqp.inc');

define('HOST','localhost');
define('PORT',5672);
define('USER','guest');
define('PASS','guest');

$conn = new AMQPConnection(HOTS,PORT,USER,PASS);
$channel = conn->channel();

$channel->exchange_declare('logs-exchange',
'topic',false,true,false);

$channel->queue_declare('msg-inbox-errors',
false,true,false,false);

$channel->queue_declare('msg-inbox-logs',
false,true,false,false);

$channel->queue_declare('all-logs',
false,true,false,false);

$channel->queue_bind('msg-inbox-errors',
'logs-exchange','error.msg-inbox');

$channel->queue_bind('msg-inbox-logs',
'logs-exchange','*.mgs-inbox');
?>

运行后报错

Parse error: parse error in /Users/yuanchenyun/Desktop/Project/PHPWorkspace/rabbitmqctl-examples.php on line 11

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐