极限首页 业界焦点 软件工程师之路 系统工程师之路 网络工程师之路 软件下载 技术社区
 RPM 打包软件技术详解(1)
 配置MySQL+PHP+Apahce
 安装 XAMPP 进行方便集成开
 用于 Python 的高级 GUI 库
 RPM 打包软件技术详解(2)
 php.ini的简单配置(三)
 RPM 打包软件技术详解(3)
 Python IDE 测评
 解决PHP存取MySQL 4.1乱码
 php.ini的简单配置(四)
 RPM 打包软件技术详解(1)
 配置MySQL+PHP+Apahce
 安装 XAMPP 进行方便集成开
 用于 Python 的高级 GUI 库
 RPM 打包软件技术详解(2)
 php.ini的简单配置(三)
 RPM 打包软件技术详解(3)
 Python IDE 测评
 解决PHP存取MySQL 4.1乱码
 php.ini的简单配置(四)

Shell 中文手册

Python 2.3 中文手册

Python 2.4 中文手册

Mysql 4.x 中文手册

PHP 4.x 中文手册

Apache 2.x 中文手册
更多手册

站内搜索:
当前位置:首页>>软件工程师之路>>编程基础>>正文
php.ini的简单配置(一)
时间:2005-02-26 作者:不详 来源:不详

  y2k_compliance = Off

; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit. You can enable output buffering during runtime by calling the output
; buffering functions. You can also enable output buffering for all files by
; setting this directive to On. If you wish to limit the size of the buffer
; to a certain size - you can use a maximum number of bytes instead of 'On', as
; a value for this directive (e.g., output_buffering=4096).
;
;
; 输出缓冲允许你在主体内容发送后发送头信息行(包括 cookies),作为代价,会稍微减慢一点PHP
; 输出层的速度。你可以在运行期间通过调用输出缓冲函数来打开输出缓冲。你也可以通过设置这个
; 指示来对虽有的文件打开输出缓冲。如果你想限制缓冲区大小为某个尺寸,你可以使用一个允许最大
; 的字节数值代替 "On",作为这个指示的值。
;
;
output_buffering = 4096

; You can redirect all of the output of your scripts to a function. For
; example, if you set output_handler to "ob_gzhandler", output will be
; transparently compressed for browsers that support gzip or deflate encoding.
; Setting an output handler automatically turns on output buffering.
;
;
; 你可以重新定向脚本所有输出到一个函数。例如,你可以设置 output_handler 为 "ob_gzhandler",
; 输出将会被明显的被压缩到支持 gzip 或 deflate 编码的浏览器。设置一个输出管理会自动打开
; 输出缓冲
;
;
output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
;
;
; 使用 zlib 库进行输出压缩,可以指定 off/on 或者用于压缩的缓冲大小
;
;
zlib.output_compression = Off

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block. This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block. Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
;
;
; 隐含的通知PHP的输出层在每个输出块后自己自动刷新。等同于在每个 print() 或者 echo()
; 和每个HTML块后面都调用 flush()函数。打开这个配置会引起严重的隐含执行,一般推荐在用于
; 调试目的时使用。
;
;
implicit_flush = Off

; Whether to enable the ability to force arguments to be passed by reference
; at function call time. This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend. The encouraged method of
; specifying which arguments should be passed by reference is in the function
; declaration. You're encouraged to try and turn this option Off and make
; sure your scripts work properly with it in order to ensure they will work
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).
;
;
; 是否允许在函数调用期间有强制参数以引用的形式传递的能力。这个方法不赞成使用,在将来的
; PHP和Zend版本里面可能不支持。鼓励的方法是在函数声明时指定哪个参数通过引用传递。鼓励你
; 尝试关闭这个参数,确认你的脚本能够正常运行,以便在以后版能里面正确运行(你会在每次使用
; 这个特性时得到一个警告,并且参数以值来传递,代替引用)
;
;
allow_call_time_pass_reference = Off


;
; Safe Mode
;
;
; 安全模式
;
;
;
safe_mode = Off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
;
;
; 安全模式默认的在打开文件时进行 UID 比较检查,如果你想放宽他为GID比较,打开这个参数
;
;
safe_mode_gid = Off

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
;
;
; 在安全模式,当包含如下目录和子目录文件时,绕过 UID/GID检查(路径必须在 include_path下面
; 或者在包含时使用完整路径
;
;
safe_mode_include_dir =

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
;
;
; 在安全模式下,只有给出目录下可以通过 exec 族函数执行
;
;
safe_mode_exec_dir =

; open_basedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file.
;
;
; 如果设置,则限制所有的文件操作都到下面给出的目录下。这个指示在每个目录,每个虚拟主机的web
; 服务器配置文件里给出更多的认识。
;
;
;open_basedir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes. In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here. By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
;
; Note: If this directive is empty, PHP will let the user modify ANY
; environment variable!
;
;
; 设置某些环境变量可能是隐藏的安全缺口。这个指示包含一个逗号分割的前缀指示。在安全模式下
; 用户只能修改下面提供的为前缀的变量名字。默认,用户只能设置以 PHP_ 前缀开头的环境变量(
; 例如 PHP_FOO=BAR).
;
; 注意:如果这个设置为空,则 PHP 可以让用户修改任何环境变量。
;
; safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv(). These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
;
;
; 这个指示包含用逗号分割的不允许最终用户通过 putenv()修改的环境变量的列表。这些变量即使
; 在 safe_mode_allowed_env_vars 设置允许改变他们的情况下也被保护。
;
;
safe_mode_protected_env_vars = LD_LIBRARY_PATH

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
;
;
; 这个指示用于在由于安全原因的情况下屏蔽某些函数。接受用逗号分割的函数名列表,这个指示不受
; Safe Mode 是否打开的影响。
;
;
推荐】【 】【关闭


关于极限 | 站内地图 | 意见反馈 | 广告服务 | 数据服务 | 联系我们
本站所刊登的文章,技术资料,软件均整理于网络资源或本站原创,转载请务必联系原作者或本站。
Copyright ? 2001-2004 UPLinux.com All Rights Reserved.
本站唯一联系信箱:
京ICP备05010519