I’m trying to implement simple application using PHP (unfortunately it must be in PHP) with sockets. I have one page – let’s say multi.php and many instances of page client.php
I wan’t to send some data to all instances of client.php from one instance of multi.php without files or databases.
I tried to do it using multicast (send some data from multi.php using multicast address) but it doesn’t work. I can’t communicate with any instance of client.php
Thank you in advance
You cannot do multicast with PHP for now. See http://bugs.php.net/bug.php?id=40510
What you CAN do is simply send the same data to all sockets. You have one server process (multi.php) accepting connections. This process simply sends the same data to all open connections. Is this what you try to achieve?