Simple web server implementation in PHP