Artur Graniszewski - 2011-06-29 22:44:37 -
In reply to message 1 from F. Scott Gale
Hi,
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.