samedi 25 octobre 2014

Sending a command to a php background process and run it immediately.


Vote count:

0




Thanks for reading my question.


Currently i have a PHP script running at background mode. ( /aaa.php > & /dev/null ) The script will run a loop and check the DB for any new event every 10 second and perform the task it need to be done.


Its there anyway to passing some value to that background script directly immediately instead of doing it indirectly by DB ?


[Detail information] Currently i am running a apns server for my own chat app using APNSphp. http://ift.tt/GGJDQQ


I understand that we need to open a constants connection to Apple to prevent it to block our connection.


I make the loop run at every 10 second but it is a bit slow sometime for a chat, but if i raise the idle second it will cause my server become high load.


So i am thinking is there any way to fire the event immediately instead of doing a loop.


Once again thank you for reading my question and please have a nice day !



asked 1 min ago







Sending a command to a php background process and run it immediately.

Aucun commentaire:

Enregistrer un commentaire