2 qq1591118132 qq1591118132 于 2017.09.14 22:22 提问

运行php文件报错,新手求指教
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个回答

caozhy
caozhy   Ds   Rxr 2017.09.15 09:03
已采纳

rabbitmqctl-examples.php on line 11
提示你这个文件的第11行有错,你找下,看看是不是哪里写错了。

Csdn user default icon
上传中...
上传图片
插入图片