Konfiguracja wykonawcza

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.

Przykład #1 Turning off PHP parsing for a directory using .htaccess

php_flag engine off

Apache configuration options
Nazwa Domyślnie Możliwość zmian Rejestr zmian
engine "1" PHP_INI_ALL  
child_terminate "0" PHP_INI_ALL  
last_modified "0" PHP_INI_ALL  
xbithack "0" PHP_INI_ALL  
Szczegóły i definicje dotyczące działania PHP_INI_* znajdują się w rozdziale Where a configuration setting may be set.

Oto krótkie wyjaśnienie dyrektyw konfiguracji.

engine boolean

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.

child_terminate boolean

Specify whether PHP scripts may request child process termination on end of request, see also apache_child_terminate().

last_modified boolean

Send PHP scripts modification date as Last-Modified: header for this request.

xbithack boolean

Parse files with executable bit set as PHP regardless of their file ending.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top