Execute PHP file in background

Posted by Spyric on Stack Overflow See other posts from Stack Overflow or by Spyric
Published on 2012-12-03T17:02:01Z Indexed on 2012/12/03 17:03 UTC
Read the original article Hit count: 128

Filed under:
|

I have some php code, that execute for a very long time.

I need to realise next scheme:

  1. User enter on some page(page 1)
  2. This page starts execution of my large PHP script in background .(Every change is writting to database)
  3. We sent every N seconds query to database to get current status of execution.

I don't want to use exec command because 1000 users makes 1000 php processes. It's not way for me...

© Stack Overflow or respective owner

Related posts about php

Related posts about multithreading