本文 29038 pv

0

PHP 4.1.0 的 php.ini 的全文翻译

© kekehu / 技术资源 / 2006.04.01 / 11:22 / 29038PV


;;;;;;;;;;;;;;;;;;;

[Syslog]
;
; 系统日志
;
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In
; runtime, you can define these variables by calling define_syslog_variables().
;
;
; 是否定以不同的系统日志变量(例如,$LOG_PID,$LOG_CRON,等等)。为性能考虑,关闭比较好
; 在运行期间,你可以通过调用 define_syslog_variables() 定以这些变量
;
;
define_syslog_variables = Off

[mail function]
;
; 邮件函数
;
; For Win32 only.
;
;
; Win32 可用
;
;
SMTP = localhost

; For Win32 only.
;
;
; Win32 可用
;
;
sendmail_from = me@localhost.com

; For Unix only. You may supply arguments as well (default: 'sendmail -t -i').
;
;
; Unix 可用,可以指定参数。(默认是 sendmail -t -i )
;
;
;sendmail_path =

[Logging]
;
; 日志
;
; These configuration directives are used by the example logging mechanism.
; See examples/README.logging for more explanation.
;
;
; 这些配置指示例子中的日志机制,查看 examples/README.logging 的详细说明
;
;
;logging.method = db
;logging.directory = /path/to/log/directory

[Java]
;
; Java 支持
;
;
; 指向 php_java.jar 的位置
;
;java.class.path = .php_java.jar

;
; 指向 java 安装的目录
;
;java.home = c:jdk

;
; 指向虚拟机的目录
;
;java.library = c:jdkjrebinhotspotjvm.dll

;
; 指向 java 扩展所在的目录,比如 c:phpextensions
;
;java.library.path = .

[SQL]
;
; SQL 设置
;
sql.safe_mode = Off

[ODBC]
;
; ODBC 设置
;

;
; 默认的数据库,尚未实现
;
;odbc.default_db = Not yet implemented

;
; 默认的用户,尚未实现
;
;odbc.default_user = Not yet implemented

;
; 默认的密码,尚未实现
;
;odbc.default_pw = Not yet implemented

; Allow or prevent persistent links.
;
; 允许或者防止持久连接
;
odbc.allow_persistent = On

; Check that a connection is still valid before reuse.
;
; 在连接重新使用前检查是否依然合法
;
odbc.check_persistent = On

; Maximum number of persistent links. -1 means no limit.
;
; 最大的持久连接数量,-1 代表不限制
;
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
;
; 最大的连接数(持久 + 非持久),-1 代表不限制
;
odbc.max_links = -1

; Handling of LONG fields. Returns number of bytes to variables. 0 means
; passthru.
;
; 处理超长的字段,返回可用的字节数量,0 代表 放弃(passthru)
;
odbc.defaultlrl = 4096

; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of uodbc.defaultlrl and uodbc.defaultbinmode
;
; 处理二进制数据。0 代表放弃(passthru),1 返回原始的,2 转化为字符。
;
odbc.defaultbinmode = 1

[MySQL]
;
;
; MySQL 配置
;
;
; Allow or prevent persistent links.
;
; 是否允许持久连接
;
mysql.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
;
; 最大的持久连接数量,-1 无限
;
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
;
; 最大的连接数量(持久+非持久), -1 无限
;
mysql.max_links = -1

; Default port number for mysql_connect(). If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look at MYSQL_PORT.
;
; mysql_connect()默认的端口号。如果没有设置,则使用 $MYSQL_TCP_PORT 或者 在 /etc/services
; 里面的 mysql_tct 入口,或者运行期间给出的 MYSQL_PORT,Win32 只查看 MYSQL_PORT
;
mysql.default_port =

; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
;
; 默认的本地 MySQL 连接的 socket 名字,如果为空泽使用内置的
;
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
;
; 默认的连接主机(在安全模式下不使用)
;
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
;
; 默认的用户名(在安全模式不使用)
;
mysql.default_user =

; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo cfg_get_var("mysql.default_password")
; and reveal this password! And of course, any users with read access to this
; file will be able to reveal the password as well.
;
; 默认的连接密码(在安全模式下不使用)
; 注意:在这里存储密码是一个非常不好的注意。任何可以访问 PHP 的用户可以通过
; echo cfg_get_var("mysql.default_password")来获得密码。当然,任何拥有这个文件读取
; 权限的用户同样可以得到密码。
;
mysql.default_password =

[mSQL]
; Allow or prevent persistent links.
;
; 是否允许持久连接
;
msql.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
;
; 最大的持久连接数量,-1 无限
;
msql.max_persistent = -1

; Maximum number of links (persistent+non persistent). -1 means no limit.
;
; 最大的连接数量(持久+非持久), -1 无限
;
msql.max_links = -1

[PostgresSQL]
; Allow or prevent persistent links.
;
; 是否允许持久连接
;
pgsql.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
;
; 最大的持久连接数量,-1 无限
;
pgsql.max_persistent = -1

; Maximum number of links (persistent+non persistent). -1 means no limit.
;
; 最大的连接数量(持久+非持久), -1 无限
;
pgsql.max_links = -1

[Sybase]
; Allow or prevent persistent links.
;
; 是否允许持久连接
;
sybase.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
;
; 最大的持久连接数量,-1 无限
;
sybase.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
;
; 最大的连接数量(持久+非持久), -1 无限
;
sybase.max_links = -1

;sybase.interface_file = "/usr/sybase/interfaces"

; Minimum error severity to display.
;
; 显示的最小错误
;
sybase.min_error_severity = 10

; Minimum message severity to display.
;
; 显示最小错误信息
;
sybase.min_message_severity = 10

; Compatability mode with old versions of PHP 3.0.
; If on, this will cause PHP to automatically assign types to results according
; to their Sybase type, instead of treating them all as strings. This
; compatability mode will probably not stay around forever, so try applying
; whatever necessary changes to your code, and turn it off.
;
; 兼容于旧的 PHP 3.0
; 如果为 on, 则PHP 根据他们的 Sybase 类型自动给结果赋予类型,而不是全部当成字符串。
; 这个兼容模式在将来不会保留,所以请修改你的代码,关闭这个参数
;
sybase.compatability_mode = Off

[Sybase-CT]
; Allow or prevent persistent links.
;
; 是否允许持久连接
;
sybct.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
;
; 最大的持久连接数量,-1 无限
;
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
;
; 最大的连接数量(持久+非持久), -1 无限
;
sybct.max_links = -1

; Minimum server message severity to display.
;
; 最小的服务器严重信息显示
;
sybct.min_server_severity = 10

; Minimum client message severity to display.
;
; 最小的客户端严重信息显示
;
sybct.min_client_severity = 10

[bcmath]
;
;
;
; Number of decimal digits for all bcmath functions.
;
; bcmath 函数的十进制数字
;
bcmath.scale = 0

[browscap]
;
; 用于判断客户信息
;
;browscap = extra/browscap.ini

[Informix]
;
;
;
; Default host for ifx_connect() (doesn't apply in safe mode).
;
; 默认的连接主机(安全模式下无效)
;
ifx.default_host =

; Default user for ifx_connect() (doesn't apply in safe mode).
;
; 默认的连接用户(安全模式下无效)
;
ifx.default_user =

; Default password for ifx_connect() (doesn't apply in safe mode).
;
; 默认的连接密码(安全模式下无效)
;
ifx.default_password =

; Allow or prevent persistent links.
;
; 是否允许持久连接
;
ifx.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
;
; 最大持久连接数量
;
ifx.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
;
; 最大连接数量
;
ifx.max_links = -1

; If on, select statements return the contents of a text blob instead of its id.
;
; 如果为 on, 则选择语句返回 text blob 代替编号
;
ifx.textasvarchar = 0

; If on, select statements return the contents of a byte blob instead of its id.
;
; 如果为 on,则选择语句返回 byte blob 代替编号
;
ifx.byteasvarchar = 0

; Trailing blanks are stripped from fixed-length char columns. May help the
; life of Informix SE users.
ifx.charasvarchar = 0

; If on, the contents of text and byte blobs are dumped to a file instead of
; keeping them in memory.
ifx.blobinfile = 0

; NULL's are returned as empty strings, unless this is set to 1. In that case,
; NULL's are returned as string 'NULL'.
ifx.nullformat = 0

[Session]
;
; Session 部分
;

; Handler used to store/retrieve data.
;
; 用于处理存储/取得数据
;
session.save_handler = files

; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;
; 传递给 save_handleer 的参数,在 files 情况下,是数据存储的路径。
; 注意,Windows 用户需要修改这个变量来使用 PHP 的 session 功能
;
; 我给出的路径是我安装 PHP的路径,你可以改成任何你硬盘存在的路径
;
session.save_path = c:php

; Whether to use cookies.
;
; 是否使用 cookies
;
session.use_cookies = 1


; Name of the session (used as cookie name).
;
; session 的名字(用于 cookes )
;
session.name = PHPSESSID

; Initialize session on request startup.
;
; 在请求开始时初始化 session
;
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
;
; cookie 的存活秒数,如果为 0 , 则是直到浏览器重新启动
;
session.cookie_lifetime = 0

; The path for which the cookie is valid.
;
; 正确的 cookie 路径
;
session.cookie_path = /

; The domain for which the cookie is valid.
;
; 存放数值的 cookie的主机(主键)
;
session.cookie_domain =

; Handler used to serialize data. php is the standard serializer of PHP.
;
; 序列化数据的句柄,标准句柄是 php
;
session.serialize_handler = php

; Percentual probability that the 'garbage collection' process is started
; on every session initialization.
;
; 打开每个session初始化时自动开始垃圾收集进程
;
session.gc_probability = 1

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
;
; 当超过这个时间,存储的的数据会被认为是垃圾,被 gc 进程清除
;
session.gc_maxlifetime = 1440

; Check HTTP Referer to invalidate externally stored URLs containing ids.
;
; 检查包含 ids 的 HTTP 里无效的外部保存 URLs的内容
;
session.referer_check =

; How many bytes to read from the file.
;
; 从文件里读入的允许字节数
;
session.entropy_length = 0

; Specified here to create the session id.
;
; 指定在这里建立 session id
;
session.entropy_file =

;session.entropy_length = 16

;session.entropy_file = /dev/urandom

; Set to {nocache,private,public} to determine HTTP caching aspects.
;
; 确定 HTTP 缓存外貌 {nocache,private,public}
;
session.cache_limiter = nocache

; Document expires after n minutes.
;
; 超过 n 分钟文档到期
;
session.cache_expire = 180

; use transient sid support if enabled by compiling with --enable-trans-sid.
;
; 如果在编译时使用 --enable_trans-sid ,则使用短暂 sid 支持
;
session.use_trans_sid = 1

url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]
;
; 这个就是 Microsoft Sql Server
;

; Allow or prevent persistent links.
;
; 是否允许持久连接
;
mssql.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
;
; 最大持久连接数
;
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent). -1 means no limit.
;
; 最大连接数
;
mssql.max_links = -1

; Minimum error severity to display.
;
; 显示的最小错误严重
;
mssql.min_error_severity = 10

; Minimum message severity to display.
;
; 最小的显示的严重信息
;
mssql.min_message_severity = 10

; Compatability mode with old versions of PHP 3.0.
;
; 兼容老的 PHP 3.0
;
mssql.compatability_mode = Off

; Valid range 0 - 2147483647. Default = 4096.
;
; 允许值 , 默认值
;
;mssql.textlimit = 4096

; Valid range 0 - 2147483647. Default = 4096.
;
; 允许值, 默认值
;
;mssql.textsize = 4096

; Limits the number of records in each batch. 0 = all records in one batch.
;
; 每个批次最大的纪录数, 0 = 所有纪录1个批次
;
;mssql.batchsize = 0

[Assertion]
; Assert(expr); active by default.
;assert.active = On

; Issue a PHP warning for each failed assertion.
;assert.warning = On

; Don't bail out by default.
;assert.bail = Off

; User-function to be called if an assertion fails.
;assert.callback = 0

; Eval the expression with current error_reporting(). Set to true if you want
; error_reporting(0) around the eval().
;assert.quiet_eval = 0

[Ingres II]
; Allow or prevent persistent links.
ingres.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
ingres.max_persistent = -1

; Maximum number of links, including persistents. -1 means no limit.
ingres.max_links = -1

; Default database (format: [node_id::]dbname[/srv_class]).
ingres.default_database =

; Default user.
ingres.default_user =

; Default password.
ingres.default_password =

[Verisign Payflow Pro]
; Default Payflow Pro server.
pfpro.defaulthost = "test-payflow.verisign.com"

; Default port to connect to.
pfpro.defaultport = 443

; Default timeout in seconds.
pfpro.defaulttimeout = 30

; Default proxy IP address (if required).
;pfpro.proxyaddress =

; Default proxy port.
;pfpro.proxyport =

; Default proxy logon.
;pfpro.proxylogon =

; Default proxy password.
;pfpro.proxypassword =

[Sockets]
; Use the system read() function instead of the php_read() wrapper.
;
; 使用系统的 read() 函数代替 php_read() 封装
;
sockets.use_system_read = On

[com]
;
; COM 设置
;
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
;
; 指向包含 GUIDs,IIDs 或者 拥有 TypeLibs 文件的文件名的文件路径
;
;com.typelib_file =

; allow Distributed-COM calls
;
; 允许分布式 COM 调用
;
;com.allow_dcom = true

; autoregister constants of a components typlib on com_load()
;
; 在 com_load()时自动注册 typlib 组件的常量
;
;com.autoregister_typelib = true

; register constants casesensitive
;
; 注册常量区分大小写
;
;com.autoregister_casesensitive = false

; show warnings on duplicate constat registrations
;
; 重复注册常量则给出警告
;
;com.autoregister_verbose = true

[Printer]
;printer.default_printer = ""

[mbstring]
;mbstring.internal_encoding = EUC-JP
;mbstring.http_input = auto
;mbstring.http_output = SJIS
;mbstring.detect_order = auto
;mbstring.substitute_character = none;

[FrontBase]
;fbsql.allow_persistant = On
;fbsql.autocommit = On
;fbsql.default_database =
;fbsql.default_database_password =
;fbsql.default_host =
;fbsql.default_password =
;fbsql.default_user = "_SYSTEM"
;fbsql.generate_warnings = Off
;fbsql.max_connections = 128
;fbsql.max_links = 128
;fbsql.max_persistent = -1
;fbsql.max_results = 128
;fbsql.mbatchSize = 1000

; Local Variables:
; tab-width: 4
; End:

下载这个文件 php.ini

[php]

;;;;;;;;;;;;;;;;;;;
; About this file ;
;
; 关于这个文件
;
;;;;;;;;;;;;;;;;;;;
;
; This is the recommended, PHP 4-style version of the php.ini-dist file. It
; sets some non standard settings, that make PHP more efficient, more secure,
; and encourage cleaner coding.
;
;
; 这个是推荐的,PHP 4 版本类型的 php.ini-dist 文件,他设置了一些非标准的设置,他们使得
; PHP更加有效,更加安全,鼓励整洁的编码。
;
;
; The price is that with these settings, PHP may be incompatible with some
; applications, and sometimes, more difficult to develop with. Using this
; file is warmly recommended for production sites. As all of the changes from
; the standard settings are thoroughly documented, you can go over each one,
; and decide whether you want to use it or not.
;
;
; 这样做的代价是,某些应用程序可能在这样的配置下不兼容,在某些情况下,开发会更加困难。
; 使用这个文件是我门对建设站点的热心建议。每个标准设置的改变都有彻底的说明稳当,你可以
; 处理没一个,决定是否使用他们。
;
;
; For general information about the php.ini file, please consult the php.ini-dist
; file, included in your PHP distribution.
;
;
; 关于 php.ini 的一般信息,请参考 php.ini-dist 文件,包括你的 PHP 的说明
;
;
; This file is different from the php.ini-dist file in the fact that it features
; different values for several directives, in order to improve performance, while
; possibly breaking compatibility with the standard out-of-the-box behavior of
; PHP 3. Please make sure you read what's different, and modify your scripts
; accordingly, if you decide to use this file instead.
;
;
; 这个文件和 php.ini-dist 的区别在于它给予了一些指示不同的值,来提高性能,同时可能破坏了
; PHP 3 的标准的 out-of-the-box 特性。
;
;
; - register_globals = Off [Security, Performance]
; Global variables are no longer registered for input data (POST, GET, cookies,
; environment and other server variables). Instead of using $foo, you must use
; you can use $_REQUEST["foo"] (includes any variable that arrives through the
; request, namely, POST, GET and cookie variables), or use one of the specific
; $_GET["foo"], $_POST["foo"], $_COOKIE["foo"] or $_FILES["foo"], depending
; on where the input originates. Also, you can look at the
; import_request_variables() function.
; Note that register_globals is going to be depracated (i.e., turned off by
; default) in the next version of PHP, because it often leads to security bugs.
; Read http://php.net/manual/en/security.registerglobals.php for further
; information.
;
;
; 全局变量不再注册输入的数据(POST,GET,cookies,环境变量和其他的服务器变量)。作为代替的是使用
; $foo, 你必须使用 $_REQUEST["foo"] ( 包括所有的通过请求传来的变量,也就是说,POST,GET,和
; cookies 变量)或者根据输入的来源使用指定的 $_GET["foo"],$_POST["foo"],$_COOKIE["foo"]
; ,$_FILES["foo"] (访问他们).同时,你可以查看 import_request_variables()函数。
;
; 注意,这个参数可能在下个版本去掉(默认为off),因为他经常引起安全 bugs.到
; http://php.net/manual/en/security.registerglobals.php
; 查看详细内容
;
;
; - display_errors = Off [Security]
; With this directive set to off, errors that occur during the execution of
; scripts will no longer be displayed as a part of the script output, and thus,
; will no longer be exposed to remote users. With some errors, the error message
; content may expose information about your script, web server, or database
; server that may be exploitable for hacking. Production sites should have this
; directive set to off.
;
;
内文分页: [1] [2] [3] [4] [5]

本文有 0 篇评论

发表你的见解

打开HTML 打开UBB 打开表情 隐藏 记住我
emotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemot
emotemotemotemotemot