- dumb async http server
- dumb forking http server
- dumb forking https server
- dumb http server
- dumb jsonrpc server
- dumb smtp server
- dumb soap server
- dumb syslog server
- dumb xmlrpc server
- fork with shared
- get http head
- ipc queues
- nshttpd
- persistent forking xmlrpc server
- shared obj
- simple chat server
- time server
- timer test
Click on the filename to view the highlighted source code.
get_http_head.php
<?php
require "nanoserv/nanoserv.php";
class http_head_client extends \Nanoserv\Connection_Handler {
function on_Connect() {
$this->Write("HEAD / HTTP/1.0\r\n\r\n");
}
public function on_Read($data) {
echo $data;
}
public function on_Disconnect() {
echo "\n";
exit();
}
}
\Nanoserv\Core::New_Connection("tcp://www.google.com:80", "http_head_client")->Connect();
\Nanoserv\Core::Run();
?>