Hi, I have used PHP client socket for many times, but is there any way to create a custom socket server in PHP like Java did ? I think this will be very useful since PHP is a lot easier to be manipulated than Java.
T.I.A (Thanks In Advance)
since sockets are standardized, if you want to make a server socket i would suggest sticking with java. php scripts aren't designed to run continuously and sit on a port and listen. i wouldn't try it. java wins here.
-frymaster
If you are on unix you can simply use the inetd to start your php scripts whenever a socket is connected.
java is not needed there.
Thanks a lot, Vincent ! That's a thoughtful idea, I appreciate that !
Now you can do it by socket function available for PHP4.06... Have fun... Sergio