From 088e46dde0d6de104a1277749a19a8ec87cab71a Mon Sep 17 00:00:00 2001 From: Stefan de Konink Date: Thu, 13 May 2010 22:40:34 +0200 Subject: [PATCH] New example. --- examples/hello_world.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/hello_world.php b/examples/hello_world.php index ae68f11..32a96fc 100644 --- a/examples/hello_world.php +++ b/examples/hello_world.php @@ -1,8 +1,8 @@ Hello World

Your request: hest

"; +function my_cool_callback($requests) { /* Takes as argument: status_code, body, and all other headers. The above, string based still works too. */ - return array('status_code' => '200 OK', 'connection' => 'close', 'content-type' => 'text/plain', 'body' => 'Hello World'); + + return array('status_code' => '200 OK', 'connection' => 'close', 'content-type' => 'text/plain', 'body' => print_r($requests, true)); } # Bind Webserver on all ips with port 8802, timeout > 0 == keep-alive -- 2.11.4.GIT