Re: [PHP] PHP telnet server



On Tue, Dec 30, 2008 at 16:34, <ceo@xxxxxxxxx> wrote:

I often thought PHP would be a nice language for a MUD, if one could get the performance out of it...

'Course you could always write some of the heaviest bits as extensions...

Indeed. I had written a very simple control-panel-like Telnet
script in PHP several years ago to handle reboots and emergency
situations, but never scaled it for more than one or two connections.
Resource usage, however, was negligible - a few Kilobytes, really.

Customize your PHP --- trim out extensions you don't need, write
common routines as extensions to save parsing time, and tune it to be
optimal for the consistent stream of packets sent across the sockets,
and I think a MUD could be very successfully authored in PHP.

--
</Daniel P. Brown>
daniel.brown@xxxxxxxxxxxx || danbrown@xxxxxxx
http://www.parasane.net/ || http://www.pilotpig.net/
Unadvertised dedicated server deals, too low to print - email me to find out!
.



Relevant Pages

  • Re: [PHP] PHP telnet server
    ... I'm trying to rewrite an old MUD in PHP; the reasons for this are that the ... Surely the point of a MUD is that the requests are shared? ... I also looked up telnet servers in PHP on google quite extensively, ... I kept my MUD in C though and created my own scripting engine for it... ...
    (php.general)
  • Re: [PHP] PHP telnet server
    ... Luke Slater wrote: ... So I was looking at sockets in PHP, ... Surely the point of a MUD is that the requests are shared? ... I also looked up telnet servers in PHP on google quite extensively, ...
    (php.general)
  • PHP telnet server
    ... 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. ... I also looked up telnet servers in PHP on google quite extensively, and there seems to be no real information out there? ...
    (php.general)
  • Re: [PHP] PHP telnet server
    ... I often thought PHP would be a nice language for a MUD, ... Design your code such that you can just throw more hardware at it ...
    (php.general)
  • Re: [PHP] PHP telnet server
    ... I often thought PHP would be a nice language for a MUD, if one could get the performance out of it... ... But maybe that's just the stupid way to write a MUD. ...
    (php.general)