Php does not know multithreading.
And yes, this is a big flaw in php IMO.
There is a way to do multithreading, but this is not recommended. It is complex and it is ugly, and it asks without causing problems.
So, I think the best you can do is something like exec or maby somthing, like calling a web service like a call?
source
share