PHP Classes

Console app to call mvc controller action to real time process: Console app to call mvc controller action to real time process

Recommend this page to a friend!
  All requests RSS feed  >  Console app to call mvc controller ac...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Console app to call mvc controller action to real time process

Edit

Picture of Ritesh Upadhyay by Ritesh Upadhyay - 10 years ago (2015-03-24)

Console app to call mvc controller action to real time process

This request is clear and relevant.
This request is not clear or is not relevant.

+3

Yii i use console to call controller action Console app to call mvc controller action to real time process Pcntl is advatage for this process my problem is my controller action inside some other action that take too much time bacause inside i call update and api multiple curl call so please guide me what i do

Ask clarification

1 Recommendation

PHP Async Task: Execute asynchronous tasks in the background

This class can Execute asynchronous tasks in the background.

It can fork a parallel process and call a function of the class that will execute the task code.

Applications should create sub-classes to override the function that will execute the parallel task code.

The parallel task can take given parameters from the originating process. Property values may also be shared with the parallel task using shared memory.

The class can also kill the parallel task, check if it is killed or still running.
This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Dmitry Mamontov by Dmitry Mamontov package author package author Reputation 320 - 10 years ago (2015-04-06) Comment

Here there is a good class that when it was written by me. It is intended for the asynchronous execution of the action. See an example, there's simple. Most importantly, note that from the web interface it will not work, but if a strong desire, you can call the class of the function exec() or other analogs. If you need to process after launch to get rid of the console outside the class at the end add the function posix_setsid(). Aluchshe just read the article http://www.phpclasses.org/blog/post/270-Creating-a-PHP-Daemon-Service.html, it will help you.

  • 1 Comment
  • 1. Picture of Ritesh Upadhyay by Ritesh Upadhyay - 10 years ago (2015-04-07) Reply

    Hello can you help me how to develop process like when i open my detail page it controller/action with unique id pass into browser inside action id related update and calculation api call in background but same type or other id of request more than 10000 so use background this process how develop.please guide me thanks in advance


Recommend package
: 
: