PHP4


Name:
PHP4

Description:
Wrapper for the PHP4 embedded script interpreter. The PHP4 Pi3 component is implemented using PHP4 Core Web Server API (SAPI), thus -

   "This product includes software written by the PHP Development Team."

Options:
Option Default Values Short Description Example(s)
ExtraHeadersPrefix - "HTTP_" Prefix for HTTP extra request headers ExtraHeadersPrefix "HTTP_"
PHPMode - Either "Standard", "Highlight", "Indent" or "SyntaxCheck" Switch PHP to intended or highlight mode PHPMode "Highlight"
- in the default indicates no default
+ in the default indicates the field is mandatory

Description of Options

ExtraHeadersPrefix
The value is added before any HTTP extra header. The request header "User-Agent ..." i.e. will generate a server variable "HTTP_USER-AGENT".
PHPMode
This value is used as a flag to control the general behaviour of PHP. The flag is optional.

Phase:
HANDLE

Returns:
PIAPI_COMPLETED, PIAPI_CONTINUE, PIAPI_ERROR, or INT_REDIRECT according to the status returned by the interpreter.

Note:
This handler requires php4ts.dll 4.04 or greater from the PHP4 Win32 binary distribution.

PHP4 extensions

The following PHP4 extensions are included in the PHP4-module:
calendar crypt dbase filepro gd imap ldap msql mssql mysql odbc standard zlib

Server variables
The following server variables are supported. "ALL_HTTP" will hold all request headers except of the values stored in other server variables.

AUTH_TYPE
CONTENT_LENGTH
CONTENT_TYPE
GATEWAY_INTERFACE
PATH_INFO
PATH_TRANSLATED
QUERY_STRING
REQUEST_METHOD
REMOTE_ADDR
REMOTE_HOST
REMOTE_USER
SCRIPT_NAME
SERVER_NAME
SERVER_PORT
SERVER_PROTOCOL
SERVER_SOFTWARE
ALL_HTTP

Example:

	<Object>
		Name PHP4
		Class PHP4Class
	</Object>

	<Object>
		...
		Handle Condition="&cmp($c,text/x-php3)" PHP4
		...
	</Object>