jbog91 Posted May 9, 2007 Share Posted May 9, 2007 I need some help with this. I am creating a poker dealer that will host many tables. I was wondering how I could have multiple instances of a script to manage each table running, kinda like a multithreaded program. Is this possible? The poker dealer is basicaly like a server, the clients will all connect to it to play. It will be a socket server. Quote Link to comment https://forums.phpfreaks.com/topic/50597-multithreaded-php-scripts/ Share on other sites More sharing options...
trq Posted May 9, 2007 Share Posted May 9, 2007 Is this possible? Yes. It will be a socket server. A mulithreaded server can get a little complex to create. Have you any code currently? You might want to take a look at the nanoserv framework and also, the nanweb php server. Both are good examples of how this can be done. Quote Link to comment https://forums.phpfreaks.com/topic/50597-multithreaded-php-scripts/#findComment-248714 Share on other sites More sharing options...
jbog91 Posted May 9, 2007 Author Share Posted May 9, 2007 Thank you. I will check that stuff out. Any other suggestions are welcome too. No, I currently do not have any code. I'm trying to get the basics down and plan. Quote Link to comment https://forums.phpfreaks.com/topic/50597-multithreaded-php-scripts/#findComment-248716 Share on other sites More sharing options...
trq Posted May 9, 2007 Share Posted May 9, 2007 Well, I hope you have plenty of time on your hands is all. Ive attempted a few servers in php in the past including one that used the nanoserv framework, and yeah, lets just say I had allot of fun doing it. Good luck. Quote Link to comment https://forums.phpfreaks.com/topic/50597-multithreaded-php-scripts/#findComment-248720 Share on other sites More sharing options...
jbog91 Posted May 9, 2007 Author Share Posted May 9, 2007 Well, I've done some irc bots but if this gets too tough, I may try doing this in java. I just need it to run on a webserver. I'd have to learn it first though. Quote Link to comment https://forums.phpfreaks.com/topic/50597-multithreaded-php-scripts/#findComment-248722 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.