【文件属性】:
文件名称:phoenix:HTTP服务器PHP扩展
文件大小:26KB
文件格式:ZIP
更新时间:2021-05-31 02:30:14
C
凤凰
phoenix是用于PHP扩展的HTTP服务器
<?php
function work_cb ( PhxClient $ client )
{
$ name = $ client -> getUriArg ( 'name' );
$ client -> status ( 200 );
$ client -> sendHeader ( "connection: close" );
$ client -> sendBody ( 'Hello: ' . $ name );
$ client -> end (); /* send response */
}
$ phx = new Phoenix ();
$ phx -> registerCallback ( '/work' , 'work_cb' ); /* register process callback fun
【文件预览】:
phoenix-master
----http_parser.h(12KB)
----http_parser.c(62KB)
----phoenix.php(505B)
----pool.h(853B)
----config.m4(2KB)
----response.c(0B)
----config.w32(303B)
----phoenix.c(5KB)
----parse.c(0B)
----CREDITS(7B)
----README.md(521B)
----pool.c(3KB)
----tests()
--------001.phpt(545B)
----client.c(0B)
----request.c(3KB)
----EXPERIMENTAL(0B)
----phoenix.h(432B)
----php_phoenix.h(3KB)