I have a project in wich a user uploads an image through a form and the server does some thumbnails. The thumbnailing is very slow so I thought that doing the image resizing with a non-blocking function could be a good solution. I mean: the server process the form (wich have more fields) gives the "ok" feedback to the user and then calls the thumbnailing function. How can I do that?
Thanks in advance
Accepted Answer
Your best option would be to implement Gearman. It's a Job Queue system where you can implement either synchronous of asynchronous jobs. http://gearman.org/
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki
Comments
Related, not necessarily a duplicate: stackoverflow.com/questions/124462/asynchronous-php-calls