0

We have one function to send push notification in our application , and we want to execute this function as a child process without hampering parent process. The return value of this child function is not important . We can not use "PCNTL" functions as well as exec or any type of such functions to fork the process (we have stringiest requirement) . I have explored and researched for almost 2 months now, but did not get satisfactory solution . Any help will be much appreciated. (parent process should not wait for child process to complite and child process should start execution instantly.)

Zorba
  • 171
  • 1
  • 3
  • 13

1 Answers1

0

As there aren't any threads in PHP (Threads in PHP), any solution with have to either be fork/exec or some abstraction of them.

Community
  • 1
  • 1
Tyler
  • 1,818
  • 2
  • 13
  • 22
  • yes, i want something which works like those functions, some asynchronous ajax trick... may do the charm .... please suggest ... – Zorba Oct 11 '13 at 06:21
  • Why not just use fork? – Tyler Oct 16 '13 at 21:49
  • I would with pleasure if that was feasible , but the current situation demands solution other than those functions :-) – Zorba Oct 18 '13 at 13:16
  • What are the extra requirements? The question, as is, is asking how to build a car without using wheels and doesn't giving motivation as to why wheels won't work. – Tyler Oct 18 '13 at 14:44
  • There are not any extra requirements , My Question Is very simple and generic, We are using Old version of php in our project and pcntl library is in updated version also we can not update the version as we are using many truncated functions in it.Hence i need the solution which does not involve any built in extension ....... – Zorba Oct 21 '13 at 05:20