Anyone has sample code that connects two socket in PHP?
I'm trying to write a php code that acts as a server. All it would do is connects two socket, it opens a file socket and pipes everything from it into another socket that it connects to. It would run 24/7. I'm not familiar with PH开发者_开发百科P but this project requires it. Any help?
Here's a great resource that does exactly what you need:
http://devzone.zend.com/article/1086
An actual answer would be pretty long winded for this Q/A format...
精彩评论