Hey,
I can't find much information apart from the PHP pages about PCNTL and I find everytime I ask something complicated on these forums no one wants to answer, so if you can then great! Else, a bit of help trying to find a bit more information regarding this issue would be very much appreciated as its stumped me.
I plan to have a Multithreaded PHP Socket Server... everything works perfect, except for one thing which I am struggling to work out how to fix. When a fork is made, it sets the PHP file off on its own as a child, however, when it does this the variables the child keeps is its own and won't update or read the parents variables, however I need this!
I have tried using $GLOBALS in the hope that it would read and edit this from all and any PHP file, however this failed miserably. Is there a way or method I can enable with the PCNTL call to ensure it keeps the same variables from parent (Doesn't sound like its possible when writing it in this) or an easier way to have a variables accessable from all PHP files.
Any advice and help however small would be appreciated!
Ty and happy Wednesday 🙂
James