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...

luchaninov
  • 6,792
  • 6
  • 60
  • 75
zonky
  • 1,058
  • 9
  • 11

1 Answers1

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

Ziumin
  • 4,800
  • 1
  • 27
  • 34
  • would be some thing like this: [multithreading](http://blog.motane.lu/2009/01/02/multithreading-in-php/), but the problem is, that it needs to run on windows – zonky Nov 28 '12 at 12:10