极限首页 业界焦点 软件工程师之路 系统工程师之路 网络工程师之路 软件下载 技术社区
 RPM 打包软件技术详解(1)
 配置MySQL+PHP+Apahce
 安装 XAMPP 进行方便集成开
 用于 Python 的高级 GUI 库
 RPM 打包软件技术详解(2)
 php.ini的简单配置(三)
 php.ini的简单配置(一)
 RPM 打包软件技术详解(3)
 Python IDE 测评
 解决PHP存取MySQL 4.1乱码
 RPM 打包软件技术详解(1)
 配置MySQL+PHP+Apahce
 安装 XAMPP 进行方便集成开
 用于 Python 的高级 GUI 库
 RPM 打包软件技术详解(2)
 php.ini的简单配置(三)
 php.ini的简单配置(一)
 RPM 打包软件技术详解(3)
 Python IDE 测评
 解决PHP存取MySQL 4.1乱码

Shell 中文手册

Python 2.3 中文手册

Python 2.4 中文手册

Mysql 4.x 中文手册

PHP 4.x 中文手册

Apache 2.x 中文手册
更多手册

站内搜索:
当前位置:首页>>软件工程师之路>>编程基础>>正文
php.ini的简单配置(二)
时间:2005-02-26 作者:不详 来源:不详

  disable_functions =

; Colors for Syntax Highlighting mode. Anything that's acceptable in
; would work.
;
;
; 语法加亮模式的颜色,任何 正常工作的都可以接受
;
;
highlight.string = #CC0000
highlight.comment = #FF9900
highlight.keyword = #006600
highlight.bg = #FFFFFF
highlight.default = #0000CC
highlight.html = #000000


;
; Misc
;
; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header). It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
;
;
; 是否让服务器暴露 PHP(例如在 web 服务器头增加标记)。他不会有安全威胁,但是可以让你
; 检测一个服务器是否使用了 PHP.
;
;
expose_php = On


;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;
;
; 资源限制
;
;

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

;
;
; 每个脚本最大执行的秒数
;
;
max_execution_time = 30 ; Maximum execution time of each script, in seconds

;
;
; 一个脚本最大消耗的内存
;
;
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;
;
; 错误处理和记录
;
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; error_reporting is a bit-field. Or each number up to get desired error
; reporting level
;
;
; 错误报告是一个位字段,每个数值代表错误报告的等级
;
;
; E_ALL - All errors and warnings
;
; 所有的错误和警告
;
; E_ERROR - fatal run-time errors
;
; 致命的运行期错误
;
; E_WARNING - run-time warnings (non-fatal errors)
;
; 运行期警告(非致命错误)
;
; E_PARSE - compile-time parse errors
;
; 编译期间解析错误
;
; E_NOTICE - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
;
; 运行期间注意,一般是由于代码的 bug 引起的警告,但是很可能是故意这样的。例如使用没有初始化
; 的变量,依赖于他自动初始化为空的字符串。
;
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
;
; 发生在 PHP 的初始启动阶段的致命错误
;
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
; initial startup
;
; 发生在 PHP 的初始启动阶段的警告(非致命错误)
;
; E_COMPILE_ERROR - fatal compile-time errors
;
; 致命的编译期间错误
;
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
;
; 编译期间的警告(非致命的错误)
;
; E_USER_ERROR - user-generated error message
;
; 用户引起的错误信息
;
; E_USER_WARNING - user-generated warning message
;
; 用户引起的警告信息
;
; E_USER_NOTICE - user-generated notice message
;
; 用户引起的提醒信息
;
;
; Examples:
;
; - Show all errors, except for notices
;
; 显示所有错误,除了提醒
;
;error_reporting = E_ALL & ~E_NOTICE
;
; - Show only errors
;
; 只显示错误
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
; - Show all errors except for notices
;
; 显示所有的错误(译者注:英文可能有错误)
;
error_reporting = E_ALL

; Print out errors (as a part of the output). For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below). Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
;
;
; 输出错误(作为输出的一部分)。对于成品网站,强烈建议关闭这个特性,使用下面错误日志代替。
; 在成品网站打开这个特性可能对最终用户暴露安全信息。例如 WEB 服务器的文件路径,数据库计划
; 或其他信息。
; ; display_errors = Off

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed. It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
;
;
; 即使 display_errors 参数设置位 on,发生在 PHP 的启动顺序期间的错误也不会显示。
; 强烈建议保持 display_startup_errors 为 off,除非在调试阶段。
;
;
display_startup_errors = Off

; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
;
;
; 把错误写到一个日志文件里面(服务器指定日志,标准错误,或者后面的错误日志)。
; 根据上面的一致性,强烈建议使用错误日志代替web站点的错误显示。
;
;
推荐】【 】【关闭


关于极限 | 站内地图 | 意见反馈 | 广告服务 | 数据服务 | 联系我们
本站所刊登的文章,技术资料,软件均整理于网络资源或本站原创,转载请务必联系原作者或本站。
Copyright ? 2001-2004 UPLinux.com All Rights Reserved.
本站唯一联系信箱:
京ICP备05010519