A TCP/IP Stack and Webserver in PHP

June 12, 2004 | Link of the Day | By: Mark VandeWettering

Sweet Zombie Turing! Adam Dunkels has written phpstack – A TCP/IP Stack and Webserver in PHP. Some people really do have too much free time on their hands.

Adam is also the author of the more useful lwip and uip, which are compact implementations of TCP/IP that you might actually want to use.

Writing software in odd languages isn’t exactly a new idea. Nanoweb is an http server in PHP. HTTPi is a webserver written in perl. PS-HTTPD is a webserver writen in PostScript.

Comments

Comment from uriel
Time 6/12/2004 at 5:16 pm

Now all we need is a decent web server written in Python, but for that Python would need first some decent threading model… *sigh*

Comment from Mark
Time 6/12/2004 at 8:30 pm

There are certainly those who would claim that Twisted would qualify as a decent webserver written in Python. Medusa would also be on my list, although it isn’t being actively maintained. Neither rely on threading at all, instead using asynchronous handlers.

But frankly, I’m not sure we really need a decent webserver written in Python (or PHP, perl, or PostScript). It really doesn’t matter much if the webserver is written in Python if we can use functionality like mod_python to handle requests.

Oh, and congratulations! I think you are the first person to comment in my weblog since it was moved over to WordPress.