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

PHP
新手入门:学习掌握动态网页PHP的编程语句
PHP建设论坛:Discuz!论坛快速架设指南
理解动态网页技术PHP与数组的应用
PHP初学:实例详细学习PHP的简单语法
PHP实例:PHP生成带有雪花背景的网站验证码
PHP网站开发中关于包含路径问题的解决方案
用PHP实现网页开发中的翻页跳转
用PHP程序实现随机广告图片显示
如何使PHP文件与HTML代码更好的分离
PHP关于代码转换问题比较完善的解决办法
新手如何使用PHP创建RSS阅读器
用PHP程序为自己网站打造一个搜索引擎
PHP实现文件安全下载的程序
快速掌握MySQL数据库中SELECT语句
用javascript+php随机显示图片
论Web 2.0 时代PHP的地位
用动态网页技术PHP打造个人网站全攻略
问题解决:无法载入MYSQL扩展,请检查PHP配置
新手入门:PHP网站开发中常见问题汇总
用PHP程序实现删除目录的三种方法实例

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 37 ::
收藏到网摘: 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