I. Funkce specifické pro Apache

Úvod

Tyto funkce jsou k dispozici pouze pokud PHP běží jako modul Apache 1.x.

Instalace

Instalaci PHP v Apache 1.x viz část Apache kapitoly o instalaci.

Konfigurace běhu

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.

Příklad 1. Turning off PHP parsing for a directory using .htaccess

php_flag engine off

Tabulka 1. Apache configuration options

NameDefaultChangeableFunction
engineOnPHP_INI_ALLturns PHP parsing on or off
child_terminateOffPHP_INI_ALL specify whether PHP scripts may request child process termination on end of request, see also apache_child_terminate()
last_modifiedOffPHP_INI_ALLsend PHP scripts modification date as Last-Modified: header for this request
xbithackOffPHP_INI_ALLparse files with executable bit set as PHP regardless of their file ending

Zde je stručné vysvětlení konfiguračních direktiv.

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.

Typy prostředků

Toto rozšíření nemá definován žádný typ prostředku (resource).

Předdefinované konstanty

Toto rozšíření nemá definovány žádné konstanty.

Obsah
apache_child_terminate -- Terminate apache process after this request
apache_get_version --  Fetch Apache version
apache_lookup_uri --  Provádí částečný požadavek na zadanou URI a vrací všechno info o ní
apache_note -- Získává a nastavuje poznámky požadavku u Apache.
apache_request_headers -- Fetch all HTTP request headers
apache_response_headers --  Fetch all HTTP response headers
apache_setenv -- Set an Apache subprocess_env variable
ascii2ebcdic -- Překládá řetězec z ASCII do EBCDIC
ebcdic2ascii -- Překládá řetězec z EBCDIC do ASCII
getallheaders -- Získává všechny hlavičky HTTP požadavku
virtual -- Provádí sub-požadavek Apache