links for 2011-03-03

  • When it comes to web development, most people wouldn't doubt PHP's best friend is Apache HTTPD Server. Having that said, developers who experienced any of web application frameworks of other scripting languages such as Ruby on Rails and Django may well find it cumbersome to set up httpd.conf just to use it within a development environment as those are most likely accompanied by a tiny web server that can be launched with a simple command line.
    While PHP is capable enough to write a standalone web server in thanks to the enhanced stream APIs, writing a web server in PHP for each web application framework should not really make sense because it could not be made compatible enough with the standard environment due to difficulty of emulating PHP's per-request resource handling in the main event loop without Runkit.
    Therefore, it is natural that CLI version of PHP has a feature that the binary itself can be a web server.