Introduktion
These functions are only available when running PHP as an Apache module.
Not:
PATH_TRANSLATED server variable is no longer set implicitly under Apache
2 SAPI in contrast to the situation in Apache 1, where it is set to the
same value as the SCRIPT_FILENAME server variable when it is not
populated by Apache. This change was made to comply with the CGI specification. Please refer to bug #23610 for further information.
Installation
For PHP installation on Apache see the
Apache section in the installation
chapter.
Konfiguration under drift
The behaviour of the Apache PHP module is affected by settings in php.ini.
Configuration settings from php.ini may be overridden by
php_flag settings
in the server configuration file or local .htaccess files.
Exempel 1. Turning off PHP parsing for a directory using .htaccess |
Tabell 1. Apache configuration options
| Name | Default | Changeable | Function |
|---|
| engine | On | PHP_INI_ALL | turns PHP parsing on or off |
| child_terminate | Off | PHP_INI_ALL |
specify whether PHP scripts may request child process termination on end of request,
see also apache_child_terminate()
|
| last_modified | Off | PHP_INI_ALL | send PHP scripts modification date as Last-Modified: header for this request |
| xbithack | Off | PHP_INI_ALL | parse files with executable bit set as PHP regardless of their file ending |
Här följer en kort förklaring av
konfigurationsdirektiven.
- engine
boolean
This directive is really only useful in the Apache module
version of PHP. It is used by sites that would like to turn
PHP parsing on and off on a per-directory or per-virtual
server basis. By putting engine off
in the appropriate places in the httpd.conf file, PHP can
be enabled or disabled.
Resurstyper
Den här utbyggnaden har inte några resurstyper definerade.
Fördefinerade konstanter
Den här utbyggnaden har inte några konstanter definerade.