Re: [PHP] PHP telnet server
- From: micah@xxxxxxxxxxx (Micah Gersten)
- Date: Wed, 31 Dec 2008 02:08:23 -0600
Luke Slater wrote:
Hi everyone,How about AJAX and sessions instead of having TCP sockets?
I'm trying to rewrite an old MUD in PHP; the reasons for this are that
the original is written in C and most files in the codebase run over
2000 lines with at least 20 of them, which makes it very hard to
change anything.
Plus, the web interface is also written in C, and needless to say
that's just nasty!
So I was looking at sockets in PHP, and thinking about the semantics
of it all.
I was looking at this article:
http://devzone.zend.com/article/1086-Writing-Socket-Servers-in-PHP
And thought 'wow this looks like it might be pretty easy actually!'
But then I reached the first hurdle point:
'
/* Accept incoming requests and handle them as child processes */
$client = socket_accept($sock);
'
Surely the point of a MUD is that the requests are shared?
I also looked up telnet servers in PHP on google quite extensively,
and there seems to be no real information out there? I would imagine
that I'm looking for the wrong thing, however.
In short I'm looking for the basic idea on how a MUD server would be
implemented in PHP.
Thanks in advance for anything,
Luke Slater
http://xajaxproject.org/
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
.
- References:
- PHP telnet server
- From: Luke Slater
- PHP telnet server
- Prev by Date: Re: [PHP] Re: Webhotel structure
- Next by Date: Re: [PHP] PHP telnet server
- Previous by thread: Re: [PHP] PHP telnet server
- Next by thread: Since I speak with some of you more than people I see in person....
- Index(es):
Relevant Pages
|