Reputation: 4403
I want to be able to have a PHP script working in the background. So I did some research and I found two solutions:
I am wondering which solution is the best.
Also, I have seen that in PHP.ini there is a memory limitation. I am wondering how this limitation will affect my "background" PHP script, and if I need more memory which solution is the best.
More details:
The script that will be working in the background will encrypt a file with the help of PHP and Kohana framework.
I am using Ubuntu 11.
Upvotes: 0
Views: 257
Reputation: 2825
Obviously, it depends on whether you need Gearman's features or not. It's doubtful there is some magic in Gearman that would make your actual script work better, so unless you need to do work in parallel, to load balance processing, and to call functions between languages, a simple shell_exec('... &') (or a cron job) is simply less work.
Upvotes: 3