summaryrefslogtreecommitdiff
path: root/sapi/thttpd/php_thttpd.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-12-20 07:11:14 +0000
committerSascha Schumann <sas@php.net>1999-12-20 07:11:14 +0000
commit56a5e84f9ddbf2d63e34c797746124c5385306d4 (patch)
tree69440866a3fe79033ed60c24a008ba5b9edb1234 /sapi/thttpd/php_thttpd.h
parentf5d5637f729d9b6b221022a3a423d0d400560162 (diff)
downloadphp-git-56a5e84f9ddbf2d63e34c797746124c5385306d4.tar.gz
Add SAPI module for thttpd server. Quote from the README:
This is a SAPI module for PHP 4.0 supporting thttpd, the tiny, turbo, throttling HTTP server by Jef Poskanzer. The module contains a patch against version 2.10 of thttpd. The patch adds hooks to thttpd to call PHP, if a filename matches *.php. This patch will be applied when you install PHP. While functional, this module exists primarily to demonstrate the ability of PHP to work in almost every web server environment.
Diffstat (limited to 'sapi/thttpd/php_thttpd.h')
-rw-r--r--sapi/thttpd/php_thttpd.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/sapi/thttpd/php_thttpd.h b/sapi/thttpd/php_thttpd.h
new file mode 100644
index 0000000000..1bd81f969f
--- /dev/null
+++ b/sapi/thttpd/php_thttpd.h
@@ -0,0 +1,30 @@
+/*
+ +----------------------------------------------------------------------+
+ | PHP version 4.0 |
+ +----------------------------------------------------------------------+
+ | Copyright (c) 1997, 1998, 1999 The PHP Group |
+ +----------------------------------------------------------------------+
+ | This source file is subject to version 2.0 of the PHP license, |
+ | that is bundled with this package in the file LICENSE, and is |
+ | available at through the world-wide-web at |
+ | http://www.php.net/license/2_0.txt. |
+ | If you did not receive a copy of the PHP license and are unable to |
+ | obtain it through the world-wide-web, please send a note to |
+ | license@php.net so we can mail you a copy immediately. |
+ +----------------------------------------------------------------------+
+ | Author: Sascha Schumann <sascha@schumann.cx> |
+ +----------------------------------------------------------------------+
+*/
+
+#ifndef PHP_THTTPD_H
+#define PHP_THTTPD_H
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <libhttpd.h>
+
+void thttpd_php_shutdown(void);
+void thttpd_php_init(void);
+off_t thttpd_php_request(httpd_conn *hc);
+
+#endif