ratcateme Posted March 24, 2008 Share Posted March 24, 2008 i want to create a php script that will listen and accept connections on a port then pass the connection onto another script to keep the main script just handling incoming connections and not being tied up until the connection ends. i have made a script that listens on port 9000 and waits until a connection is received then it will do stuff. the only problem with this is that it can only have on connection at a time and i need multiple connections at the same time. Scott. Link to comment https://forums.phpfreaks.com/topic/97551-pass-resource-to-second-script/ Share on other sites More sharing options...
ratcateme Posted March 24, 2008 Author Share Posted March 24, 2008 any ideas? at the moment i am using socket_accept() to accept the connection is there another way that will accept multiple connections because my current understanding of socket_accept() it will only take one connection at a time. Scott. Link to comment https://forums.phpfreaks.com/topic/97551-pass-resource-to-second-script/#findComment-499284 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.