ext-uv/examples/http_server.php

10 lines
245 B
PHP
Raw Normal View History

2012-07-01 13:09:19 +02:00
<?php
2012-07-01 14:58:12 +02:00
require "http.php";
require "debug_timer.php";
createServer(function($request, $response){
$response->writeHead(200, array("Content-Type" => "text/plain"));
$response->write("Hello World");
$response->end();
})->listen(8888);