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

PHP
PHP 手机归属地查询 api
php 自写函数代码 获取关键字 去超链接
检查url链接是否已经有参数的php代码 添加 ? 或 &
PHP生成网页快照 不用COM不用扩展.
一步一步学习PHP(1) php开发环境配置
一步一步学习PHP(2):PHP类型
一步一步学习PHP(3) php 函数
一步一步学习PHP(4) php 函数 补充2
提高PHP编程效率 引入缓存机制提升性能
php 数组的合并、拆分、区别取值函数集
PHP采集相关教程之一 CURL函数库
IP138 IP地址查询小偷实现代码
php 生成静态页面的办法与实现代码详细版
一步一步学习PHP(5) 类和对象
一步一步学习PHP(6) 面向对象
Apache环境下PHP利用HTTP缓存协议原理解析及应用分析
PHP 截取字符串函数整理(支持gb2312和utf-8)
php foreach 使用&(与运算符)引用赋值要注意的问题
PHP IPV6正则表达式验证代码
用PHP ob_start()控制浏览器cache、生成html实现代码

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


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