您的位置:首页 > 编程语言 > PHP开发

php配置文件php.ini的详细解析

2014-10-23 13:53 621 查看
;;;;;;;;;;;;;;;;;;;;

; Language Options ;

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

; Enable the PHP scripting language engine under Apache.

; 是否开启引擎

engine = On

;是否使用短标签<? ?>,而一般我们使用的是<?php ?>

short_open_tag = Off

;支持是否使用ASP-style <% %> tags

asp_tags = Off

;浮点数中显示有效数字的位数。

precision = 14

;强制 2000 年兼容(在不兼容的浏览器中会出问题

y2k_compliance = On

; Note: This directive is hardcoded to Off for the CLI SAPI

; Default Value: Off

; Development Value: 4096

; Production Value: 4096

; 输出缓存,选择开启,大小是4k

output_buffering = On

; Note: You need to use zlib.output_handler instead of the standard

; output_handler, or otherwise the output will be corrupted.

zlib.output_compression = Off

allow_call_time_pass_reference = Off //允许按值引用与否,这里选择的是不允许



safe_mode = Off //是否设置成安全模式,这里选择的是否

safe_mode_gid = Off // 安全模式的id

safe_mode_include_dir = //安全模式包含文件的目录

safe_mode_exec_dir = //安全模式执行文件的目录

safe_mode_allowed_env_vars = PHP_ //安全模式下的默认前缀

safe_mode_protected_env_vars = LD_LIBRARY_PATH //安全模式下保护设定的前缀

disable_classes = //因为安全原因,不允许使用的class



expose_php = On //在安装的过程中是否显示

max_execution_time = 30 //最大的执行时间,单位是秒,0表示不限制

max_input_time = 60 //允许输入的最长时间,单位是秒,0表示不限制

memory_limit = 128M //允许一个程序所使用的最大内存数

error_reporting = E_ALL //报告出所有的错误,警告

display_errors = On //是否将错误显示出来

display_startup_errors = On //是否将启动期间的错误显示出来

log_errors = On //是否将错误写入到log文件中去

log_errors_max_len = 1024 //记录错误的最大长度。0表示不限制

ignore_repeated_errors = Off //是否忽略重复出现的错误,这里选的是否

ignore_repeated_source = Off //是否忽略重复出现的资源,这里选择的是否

report_memleaks = On //是否报告内存泄漏,选择的是

track_errors = On //是否记录错误路径

html_errors = On //是否显示html中的错误

post_max_size = 8M //post能传递的最大数据

extension_dir = "d:/wamp/bin/php/php5.3.10/ext/" //扩展程序的文件目录

enable_dl = Off //是否允许使用dl函数
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: