This is the repository for the source code of the tutorial:
http://station.clancats.com/writing-a-webserver-in-pure-php/
This webserver is not meant to be useful in any case. It's just an example that shows, that of course you could write a webserver in pure php.