1

I want to run some functions parallel in the background.

Is there a nice way to do this in Symfony2 or even with php?

Or is there only the Symfony\Component\Process\Process?

Can I use this Process with a function? I need the actual Context (logged in user and some session data), so it is not possible to source the function out to an external php-file...

1 Answer 1

1

Symfony2 Process component allows you to run some shell command or execute php-script in a different process.

To run exact function in a thread try look at PHP Thread class

Sign up to request clarification or add additional context in comments.

1 Comment

would be some thing like this: multithreading, but the problem is, that it needs to run on windows

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.