当前位置: 首页 > 图文教程 > 网络编程 > PHP > php5 新增加的参数设置

PHP
PHP实例:用PHP简单实现多条件查询
PHP实例:用PHP实现多文件上载系统程序
PHP实例程序:用PHP制作登录页面程序
PHP实例:PHP取GB2312编码字符串首字母的方法
PHP实例:用PHP实现表单验证码登陆校验
Oracle与PHP实例开发Myers订单跟踪系统
PHP实例:email address 生成图片程序
PHP连接远程MYSQL和MYSQL5.1中文乱码处理方法
用 PHP 构建自定义搜索引擎
详细讲解PHP的Jmai组件及发送邮件实例
在动态网页技术PHP5中类(CLASS)的新特征
实例学习PHP如何实现在线发邮件
PHP上传文件的代码
不需要GD库的情况下实现验证码
PHP进阶教程:实现网站的无限分类
童虎:人人皆可做插件 Discuz! 插件开发实例讲解
创建论坛专业知识库 HDWiki(For Discuz!)V1.0正式版发布
PHP网站后门的隐藏技巧测试报告
加速PHP动态网站 MySQL索引分析和优化
php中rename()函数的妙用

PHP 中的 php5 新增加的参数设置


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 51 ::
收藏到网摘: n/a

[MYSQL部分]

; Maximum time (in secondes) for connect timeout. -1 means no limimt
; MYSQL数据库连接超时时间,设置为-1则不限制
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and SQL-Erros will be displayed
; 跟踪模式,当跟踪模式开启时(设置为ON),数据库表和标签索引扫描时会出现提示,出现的错误也会显示

mysql.trace_mode = Off

[session部分]
;按比率进行的'garbage collection(碎片整理)'进程,session.gc_divisor是PHP5里新增加的参数,用于设置进程的比率.比如说gc_probability = 1,gc_divisor     = 1000,意思就是按照千分之一的比率进行'garbage collection(碎片整理)'进程

session.gc_probability = 1
session.gc_divisor     = 1000

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning seperately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.

; PHP 4.2和以前的版本都有个BUG,即使你禁止了"允许注册全局变量".仍然可以让你在全局变量范围中初始化一个SESSION的值,PHP 4.3 和以后的版本会发出相应的警告,你可以禁止警告.PHP5中,只有你打开了bug_compat_42(=ON),警告才会显示.

session.bug_compat_42 = 0
session.bug_compat_warn = 1

; Select a hash function
; 0: MD5   (128 bits)
; 1: SHA-1 (160 bits)
;选择一个HASH函数,0为MD5(128比特强度),1为SHA-1(160比特强度)

session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
; 定义当转换2进制hash数据为一些可读的数据时,每个字符存储多少个比特.
; 4 比特: 0-9, a-f
; 5 比特: 0-9, a-v
; 6 比特: 0-9, a-z, A-Z, "-", ","

session.hash_bits_per_character = 5

[mbstring]
; language for internal character representation.
;内码语言类型

;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
; 内码编码设置,如果有乱码可以设置为GB2312

;mbstring.internal_encoding = EUC-J

; http input encoding.
; HTTP头输入编码,auto为自动

;mbstring.http_input = auto

; 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)
; Note: Resulting chunk size may vary due to nature of compression. PHP
;       outputs chunks that are few handreds bytes each as a result of compression.
;       If you want larger chunk size for better performence, enable output_buffering
;       also.
; Note: output_handler must be empty if this is set 'On' !!!!
;       Instead you must use zlib.output_handler.

;使用ZLIB连接库输出压缩过程,默认的压缩缓冲大小4KB.如果你把这个选项设置
为空了,那么output_handler选项必须设置为空或者用;注释掉.否则就要开启zl
ib.output_handler为ON

zlib.output_compression = Off



; Do not log repeated messages. Repeated errors must occur in same file on same
; line until ignore_repeated_source is set true.
; 不记录错误报告信息.

ignore_repeated_errors = Off