index.php is parsed by Apache. It needs to pass some data to another PHP instance which happens to be a reactphp loop. How can this be best accomplished? Both scripts are run on the same machine.
<?php
//index.php
$status=sendDataToOtherInstance('hello'); //blocking function which returns true/false
.
<?php
//reactphp loop
$foo->on('connection', function ($data){
echo($data);
return $data==='hello';
});