<div dir="ltr">Yes I am using this library but first I need to run amqp_consumer.php manually to process all messages and I don't want to execute amqp_consumer.php file manually everytime.</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Apr 7, 2014 at 1:00 PM, Alvaro Videla <span dir="ltr"><<a href="mailto:videlalvaro@gmail.com" target="_blank">videlalvaro@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Have you seen the examples here:<br>
<a href="https://github.com/videlalvaro/php-amqplib/tree/master/demo" target="_blank">https://github.com/videlalvaro/php-amqplib/tree/master/demo</a>, specially<br>
this one <a href="https://github.com/videlalvaro/php-amqplib/blob/master/demo/amqp_consumer.php" target="_blank">https://github.com/videlalvaro/php-amqplib/blob/master/demo/amqp_consumer.php</a><br>
?<br>
<br>
This is also explained in our tutorials:<br>
<a href="http://www.rabbitmq.com/tutorials/tutorial-one-php.html" target="_blank">http://www.rabbitmq.com/tutorials/tutorial-one-php.html</a><br>
<br>
Regards,<br>
<br>
Alvaro<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Apr 7, 2014 at 9:21 AM, Ravi Pandey<br>
<<a href="mailto:ravindrapandey1982@gmail.com">ravindrapandey1982@gmail.com</a>> wrote:<br>
> I am using PHP with basic.consume<br>
><br>
><br>
> On Mon, Apr 7, 2014 at 12:06 PM, Michael Klishin<br>
> <<a href="mailto:michael.s.klishin@gmail.com">michael.s.klishin@gmail.com</a>> wrote:<br>
>><br>
>><br>
>> 2014-04-07 10:07 GMT+04:00 Ravi Pandey <<a href="mailto:ravindrapandey1982@gmail.com">ravindrapandey1982@gmail.com</a>>:<br>
>><br>
>>> I want my worker script to listen all request continuously without<br>
>>> manually executing worker file. Many people suggested CRON but I don't want<br>
>>> because if previous run hasn't finished then overlap can cause serious<br>
>>> issues.<br>
>>><br>
>>> Is there any way to run my worker script continuously in background?<br>
>><br>
>><br>
>> It depends on the language and client used. What do you use? Do you<br>
>> consume using basic.consume or basic.get?<br>
>> --<br>
>> MK<br>
>><br>
>> <a href="http://github.com/michaelklishin" target="_blank">http://github.com/michaelklishin</a><br>
>> <a href="http://twitter.com/michaelklishin" target="_blank">http://twitter.com/michaelklishin</a><br>
>><br>
>> _______________________________________________<br>
>> rabbitmq-discuss mailing list<br>
>> <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
>> <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> rabbitmq-discuss mailing list<br>
> <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
> <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
><br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div>