I am just curious as to your thoughts on why you decided to implement such a server directly in PHP? Almost every system can easily be outfitted with a free server, such as Apache, which has support for various languages (dynamic) that allow for true web-development. And please, don't take this as to me attempting to flame your work, quite the opposite. I like seeing individuals pushing the boundaries of languages, such as this project, but I just have a hard time wrapping my head around the development of a web server through PHP without support for anything but static pages... like what is its intended use? Or even what provoked you to develop this in the first place?
Artur Graniszewski - 2011-06-29 22:44:37 - In reply to message 1 from F. Scott Gale
firts of all, sorry for my late reply, I was on vacation. You are right. There is a huge choice of various HTTP servers in every known programming language (even in bash!), but for now, there is only a small number of servers written in PHP, so I created one myself to show the power of PHP.
As you already know, this server is very fast, it can achieve 800req/sec on a 1,6Ghz Core 2 Duo notebook, so imagine, how fast it can be on real Xeon/Phenom servers.
As you noticed the source code published on phpclasses.org supports only static HTML pages, but anyone can easily enhance this software with PHP support (just use "require" clause and output buffering when user tries to access *.php file). I wrote in documentation, that this is a "lite" version of more advanced server, which only demonstrates how to use more advanced POSIX/socket techniques provided by PHP.
The professional version is used by many PHP devs, to ease their work in order to implement new types of protocols, self hosted PHP applications, etc.