php-src/sapi/thttpd
Zeev Suraski 9ab35ae393 Tried to centralize global variable registration as much as possible:
- Added $HTTP_ENV_VARS[] and $HTTP_SERVER_VARS[] support, which similarly
  to $HTTP_GET_VARS[], contain environment and server variables.  Setting
  register_globals to Off will now also prevent registration of the
  environment and server variables into the global scope (Zeev)
- Renamed gpc_globals to register_globals (Zeev)
- Introduced variables_order that deprecates gpc_order, and allows control
  over the server and environment variables, in addition to GET/POST/Cookies
  (Zeev)
2000-01-28 17:24:53 +00:00
..
config.m4 Integration of -ng changes. Changes: 1999-12-30 02:59:53 +00:00
Makefile.in Integration of -ng changes. Changes: 1999-12-30 02:59:53 +00:00
php_thttpd.h Happy Y2K patch! Happy new year (or the new millennium, depending on whether 2000-01-01 01:32:05 +00:00
php.sym Add SAPI module for thttpd server. Quote from the README: 1999-12-20 07:11:14 +00:00
README Add SAPI module for thttpd server. Quote from the README: 1999-12-20 07:11:14 +00:00
thttpd_patch Add SAPI module for thttpd server. Quote from the README: 1999-12-20 07:11:14 +00:00
thttpd.c Tried to centralize global variable registration as much as possible: 2000-01-28 17:24:53 +00:00

README FOR THTTPD MODULE (by Sascha Schumann)        ($Date$)

	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.

REQUIRED DOWNLOADS

	1. thttpd 2.xx
	   
	   Full Distribution:
	   http://www.acme.com/software/thttpd/
	   
	2. PHP 4.0.x
	   
	   Beta Versions:
	   http://www.php.net/version4/
	   
	   Snapshots:
	   http://va.php.net/~sas/snapshots/


BUILD INSTRUCTIONS

	1. Extract software packages

	   $ gunzip -c thttpd-2.xx.tar.gz | tar xf -
	   $ gunzip -c php-*.tar.gz | tar xf -

	2. Prepare PHP

	   $ cd php-*
	   $ ./configure \
	   		--with-thttpd=../thttpd-2.xx \
			<further PHP options>
	   $ make install
	   $ cd ..
	
	   You can see the list of valid PHP options by executing

	   $ ./configure --help

	3. Configure, compile, install thttpd

	   Now follow the thttpd instructions. The Makefile template of
	   thttpd was changed to automatically use the components
	   required by PHP.