The behaviour of these functions is affected by settings in php.ini.
Name | Default | Changeable | Changelog |
---|---|---|---|
amqp.host | localhost | PHP_INI_ALL | |
amqp.vhost | / | PHP_INI_ALL | |
amqp.port | 5672 | PHP_INI_ALL | |
amqp.login | guest | PHP_INI_ALL | |
amqp.password | guest | PHP_INI_ALL | |
amqp.auto_ack | 0 | PHP_INI_ALL | |
amqp.min_messages | 0 | PHP_INI_ALL | |
amqp.max_messages | 1 | PHP_INI_ALL | |
amqp.prefetch_count | 3 | PHP_INI_ALL |
Here's a short explanation of the configuration directives.
The host to which to connect.
The virtual host on the broker to which to connect.
The port on which to connect.
The login to use while connecting to the broker.
The password to use while connecting to the broker.
Whether calls to AMQPQueue::get() and AMQPQueue::consume() should require that the client explicitly acknowledge messages. Setting this value to 1 will pass in the AMQP_AUTOACK flag to the above method calls if the flags field is omitted.
The minimum number of messages to require during a call to AMQPQueue::consume().
The maximum number of messages to require during a call to AMQPQueue::consume().
The number of messages to prefect from the server during a call to AMQPQueue::get() or AMQPQueue::consume() during which the AMQP_AUTOACK flag is not set.