My script is called by server. From server I\'ll receive ID_OF_MESSAGE
and TEXT_OF_MESSAGE
.
In my script I\'ll handle incoming text and ge
I know it's an old one, but possibly usefull at this point.
With this answer i don't support the actual question but how to solve this problem correctly. Hope it helps other people to solve problems like this.
I would suggest to use RabbitMQ or similar services and run the background workload using worker instances. There is a package called amqplib for php which does all the work for you to use RabbitMQ.
Pro's:
Neg's: