Poniższe funkcje dostępne są jedynie wówczas, kiedy PHP pracuje jako moduł Apache.
Notatka: PATH_TRANSLATED od wersji PHP 4.3.2 nie jest już domyślnie ustawiana pod Apache 2 SAPI w odróżnieniu od sytuacji z Apache 1, gdzie jest ustawiana ta sama wartość co SCRIPT_FILENAME kiedy zmienna serwera nie jest podana przez Apache. Ta zmiana została wprowadzona, aby być w zgodzie ze specyfikacją CGI, która zakłada, że PATH_TRANSLATED powinna istnieć tylko jeżeli PATH_INFO jest zdefiniowana.
Użytkownicy Apache 2 mogą użyć AcceptPathInfo = On w httpd.conf aby zdefiniować PATH_INFO.
Instalacja PHP dla serwera Apache opisana jest w rozdziale instalacja.
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.
Tabela 1. Apache configuration options
Name | Default | Changeable | Changelog |
---|---|---|---|
engine | "1" | PHP_INI_ALL | Available since PHP 4.0.5. |
child_terminate | "0" | PHP_INI_ALL | Available since PHP 4.0.5. |
last_modified | "0" | PHP_INI_ALL | Available since PHP 4.0.5. |
xbithack | "0" | PHP_INI_ALL | Available since PHP 4.0.5. |
Oto krótkie wyjaśnienie dyrektyw konfiguracji.
Turns PHP parsing on or off. 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.
Specify whether PHP scripts may request child process termination on end of request, see also apache_child_terminate().
Send PHP scripts modification date as Last-Modified: header for this request.
Parse files with executable bit set as PHP regardless of their file ending.
To rozszerzenie nie posiada żadnych rodzajów zasobów.
To rozszerzenie nie posiada żadnych stałych.
Poprzedni | Spis treści | Następny |
dotnet_load | Początek rozdziału | apache_child_terminate |