PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<函数参考apache_child_terminate>
Last updated: Mon, 16 Jul 2012

I. Apache 函数库

简介

这些函数仅在 PHP 作为 Apache 1.x 的模块运行时可用。

安装

PHP 在 Apache 1.x 下的安装见安装一章中的 Apache 服务器 1.x 版本一节。

运行时配置

Apache 的 PHP 模块的行为受 php.ini 的设置影响。在 php.ini 中的设置可以被服务器配置文件或本地的 .htaccess 文件所覆盖。

例子 1. 用 .htaccess 禁用一个目录的 PHP 解析

php_flag engine off

表格 1. Apache 配置选项

名称默认值作用范围功能
engineOnPHP_INI_ALL启用或禁用 PHP 解析
child_terminateOffPHP_INI_ALL 指定 PHP 脚本是否可以要求子进程在请求结束时终止,参见 apache_child_terminate()
last_modifiedOffPHP_INI_ALL在此请求中将 PHP 脚本的最后修改时间以头信息 Last-Modified: 的形式发送
xbithackOffPHP_INI_ALL让 PHP 不管文件是否结束而将文件作为可执行的比特集来解析

以下是该配置选项的简要解释。

engine boolean

本指令只在 PHP 的 Apache 模块版中才有用。有的网站希望根据个别目录或者个别虚拟主机来打开或者关闭 PHP 解析。在 httpd.conf 文件中的适当位置放上 engine off 就可以激活或者关闭 PHP。

资源类型

本扩展模块未定义任何资源类型。

预定义常量

本扩展模块未定义任何常量。

目录
apache_child_terminate -- 在本次请求结束后终止 apache 进程
apache_get_modules -- Get a list of loaded Apache modules
apache_get_version -- Fetch Apache version
apache_getenv -- Get an Apache subprocess_env variable
apache_lookup_uri --  对指定的 URI 执行局部请求并且返回与其有关的全部信息
apache_note -- 取得或设置 apache 请求记录
apache_request_headers -- Fetch all HTTP request headers
apache_reset_timeout -- Reset the Apache write timer
apache_response_headers -- Fetch all HTTP response headers
apache_setenv -- Set an Apache subprocess_env variable
ascii2ebcdic -- Translate string from ASCII to EBCDIC
ebcdic2ascii -- Translate string from EBCDIC to ASCII
getallheaders -- Fetch all HTTP request headers
virtual -- Perform an Apache sub-request



<函数参考apache_child_terminate>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST