您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息
三六零分类信息网 > 银川分类信息网,免费分类信息发布

php配置中文解说_PHP教程

2024/4/8 19:40:01发布18次查看
php教程配置中文解说
先看看大家看到的php.ini
[php]
;;;;;;;;;;;
; warning ;
;;;;;;;;;;;
; this is the default settings file for new php installations.
; by default, php installs itself with a configuration suitable for
; development purposes, and *not* for production purposes.
; for several security-oriented considerations that should be taken
; before going online with your site, please consult php.ini-recommended
; and http://www.bkjia.c0m
;;;;;;;;;;;;;;;;;;;
; about php.ini   ;
;;;;;;;;;;;;;;;;;;;
; this file controls many asp教程ects of php's behavior.  in order for php to
; read it, it must be named 'php.ini'.  php looks for it in the current
; working directory, in the path designated by the environment variable
; phprc, and in the path that was defined in compile time (in that order).
; under windows, the compile-time path is the windows directory.  the
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.
;
; the syntax of the file is extremely simple.  whitespace and lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; section headers (e.g. [foo]) are also silently ignored, even though
; they might mean something in the future.
;
; directives are specified using the following syntax:
; directive = value
; directive names are *case sensitive* - foo=bar is different from foo=bar.
;
; the value can be a string, a number, a php constant (e.g. e_all or m_pi), one
; of the ini constants (on, off, true, false, yes, no and none) or an expression
; (e.g. e_all & ~e_notice), or a quoted string (foo).
;
; expressions in the ini file are limited to bitwise operators and parentheses:
; |        bitwise or
; &        bitwise and
; ~        bitwise not
; !        boolean not
;
; boolean flags can be turned on using the values 1, on, true or yes.
; they can be turned off using the values 0, off, false or no.
;
; an empty string can be denoted by simply not writing anything after the equal
; sign, or by using the none keyword:
;
;  foo =         ; sets foo to an empty string
;  foo = none    ; sets foo to an empty string
;  foo = none  ; sets foo to the string 'none'
;
; if you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a php extension or a zend extension),
; you may only use these constants *after* the line that loads the extension.
;
;
;;;;;;;;;;;;;;;;;;;
; about this file ;
;;;;;;;;;;;;;;;;;;;
; all the values in the php.ini-dist file correspond to the builtin
; defaults (that is, if no php.ini is used, or if you delete these lines,
; the builtin defaults will be identical).
;;;;;;;;;;;;;;;;;;;;
; language options ;
;;;;;;;;;;;;;;;;;;;;
; enable the php scripting language engine under apache.
engine = on
; enable compatibility mode with zend engine 1 (php 4.x)
zend.ze1_compatibility_mode = off
; allow the tag.  otherwise, only returns data converted to sql server settings
; off => returns values as yyyy-mm-dd hh:mm:ss
;mssql.datetimeconvert = on
; use nt authentication when connecting to the server
mssql.secure_connection = off
; specify max number of processes. -1 = library default
; msdlib defaults to 25
; freetds defaults to 4096
;mssql.max_procs = -1
; specify client character set.
; if empty or not set the client charset from freetds.comf is used
; this is only used when compiled with freetds
;mssql.charset = iso-8859-1
[assertion]
; assert(expr); active by default.
;assert.active = on
; issue a php warning for each failed assertion.
;assert.warning = on
; don't bail out by default.
;assert.bail = off
; user-function to be called if an assertion fails.
;assert.callback = 0
; eval the expression with current error_reporting().  set to true if you want
; error_reporting(0) around the eval().
;assert.quiet_eval = 0
[com]
; path to a file containing guids, iids or filenames of files with typelibs
;com.typelib_file =
; allow distributed-com calls
;com.allow_dcom = true
; autoregister constants of a components typlib on com_load()
;com.autoregister_typelib = true
; register constants casesensitive
;com.autoregister_casesensitive = false
; show warnings on duplicate constant registrations
;com.autoregister_verbose = true
[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-*)
;mbstring.internal_encoding = euc-jp
; http input encoding.
;mbstring.http_input = auto
; http output encoding. mb_output_handler must be
; registered as output buffer to function
;mbstring.http_output = sjis
; enable automatic encoding translation according to
; mbstring.internal_encoding setting. input chars are
; converted to internal encoding by setting this to on.
; note: do _not_ use automatic encoding translation for
;       portable libs/applications.
;mbstring.encoding_translation = off
; automatic encoding detection order.
; auto means
;mbstring.detect_order = auto
; substitute_character used when character cannot be converted
; one from another
;mbstring.substitute_character = none;
; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. possible values are 0,1,2,4 or combination of them.
; for example, 7 for overload everything.
; 0: no overload
; 1: overload mail() function
; 2: overload str*() functions
; 4: overload ereg*() functions
;mbstring.func_overload = 0
[frontbase]
;fbsql.allow_persistent = on
;fbsql.autocommit = on
;fbsql.show_timestamp_decimals = off
;fbsql.default_database =
;fbsql.default_database_password =
;fbsql.default_host =
;fbsql.default_password =
;fbsql.default_user = _system
;fbsql.generate_warnings = off
;fbsql.max_connections = 128
;fbsql.max_links = 128
;fbsql.max_persistent = -1
;fbsql.max_results = 128
[gd]
; tell the jpeg decode to libjpeg warnings and try to create
; a gd image. the warning will then be displayed as notices
; disabled by default
;gd.jpeg_ignore_warning = 0
[exif]
; exif unicode user comments are handled as ucs-2be/ucs-2le and jis as jis.
; with mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. when empty mbstring.internal_encoding
; is used. for the decode settings you can distinguish between motorola and
; intel byte order. a decode setting cannot be empty.
;exif.encode_unicode = iso-8859-15
;exif.decode_unicode_motorola = ucs-2be
;exif.decode_unicode_intel    = ucs-2le
;exif.encode_jis =
;exif.decode_jis_motorola = jis
;exif.decode_jis_intel    = jis
[tidy]
; the path to a default tidy configuration file to use when using tidy
;tidy.default_config = /usr/local/lib/php/default.tcfg
; should tidy clean and repair output automatically?
; warning: do not use this option if you are generating non-html content
; such as dynamic images
tidy.clean_output = off
[soap]
; enables or disables wsdl caching feature.
soap.wsdl_cache_enabled=1
; sets the directory name where soap extension will put cache files.
soap.wsdl_cache_dir=/tmp
; (time to live) sets the number of second while cached file will be used
; instead of original one.
soap.wsdl_cache_ttl=86400
; local variables:
; tab-width: 4
; end:
[zend]
zend_extension_manager.optimizer_ts =d:phpstudyphpstudyzendoptimizerliboptimizer
zend_extension_ts = d:phpstudyphpstudyzendoptimizerlibzendextensionmanager.dll
zend_optimizer.optimization_level=15
再来看个中文版的php.ini
;;;;;;;;;;;
; 警告 ;
;;;;;;;;;;;
; 此配置文件是对于新安装的php的默认设置.
; 默认情况下,php使用此配置文件安装
; 此配置针对开发目的,并且*不是*针对生产环境
; 基于一些安全方面的考虑,在你的网站上线之前,请考虑使用php.ini-recommended
; 以及在线文档 http://php.net/manual/en/security.php.
;;;;;;;;;;;;;;;;;;;
; 关于 php.ini   ;
;;;;;;;;;;;;;;;;;;;
; 此文件控制了php行为的很多方面.  为了让php能够读取它
; 必须命名为 'php.ini'.  php 在其当前工作目录,由phprc环境变量指定目录
; 以及由编译时指定的目录(按此顺序)查找此文件
; 在windows环境下, 编译时目录是windows目录.
; 在命令行模式下查找php.ini的目录可以被-c参数覆盖.
;
; 此文件的语法非常简单.
; 空行和由分号开始的行会被忽略(你可能已经猜到了).
; 段的开头(例如 [foo]) 同样会被悄悄忽略
; 即使在将来他们可能会有其他作用.
;
; 使用以下语法来设定指令:
; directive = value
; 指令 = 值
; 指令名称是 *大小写敏感* - foo=bar 和 foo=bar 是不同的.
;
; 值可以是字符串,数值,php常量 (例如 e_all 和 m_pi),
; ini 常量 (on, off, true, false, yes, no 和 none) 或者一个表达式
; (例如 e_all & ~e_notice), 或者带引号的字串 (foo).
;
; 在ini文件中的表达式只能使用逻辑运算和圆括号:
; |        逻辑或
; &       逻辑与
; ~       逻辑非
; !        取反
;
; 逻辑标志可以使用1,on,true或者yes来打开.
; 也可以使用0, off, false 或者 no来关闭.
;
; 在等号后面不写任何内容代表了一个空字符串
; 或者使用 none 关键词:
;
;  foo =         ; 将foo设置成一个空字串
;  foo = none    ; 将foo设置成一个空字串
;  foo = none  ; 将foo设置成字串 'none'
;
; 如果你在值中使用了常量, 并且这个常量属于一个动态加载的扩展模块
; (不论是php扩展还是zend扩展),
; 那你只能在加载这些扩展 *之后* 使用这些常量.
;
;
;;;;;;;;;;;;;;;;;;;
; 关于这个文件  ;
;;;;;;;;;;;;;;;;;;;
; 在php.ini-dist 文件中所有的值都相当于内建的默认值
; (就是如果没有使用php.ini, 或者如果你删除了这些行,
; 就和内建的默认值一样).
;;;;;;;;;;;;;;;;;;;;
; 语言选项 ;
;;;;;;;;;;;;;;;;;;;;
; 打开在apache下的php脚本语言引擎
engine = on
; 打开zend engine兼容模式(php 4.x)
zend.ze1_compatibility_mode = off
; 允许 标签.  否则,只有 ; 注意: 尽可能避免在开发可重新发布的程序或者库的时候使用简略标签,或者在不受你控制的服务器下发布,
; 因为简略标签可能不被目标服务器支持.为了可移植性, 可重新发布的代码, 请不要使用简略标签
short_open_tag = on
; 使用asp风格 标签.
asp_tags = off
; 浮点数中数值的有效位数(浮点数精度).
precision    =  12
; 强制2000年兼容 (可能引起不兼容浏览器的问题)
y2k_compliance = on
; 输出缓冲允许在你发送了body内容之后发送header(包括 cookies)
; 代价是稍稍减缓了php输出层
; 你可以在运行时调用 output buffering 函数来打开此功能
; 你也可以将此指令设置为on来对所有文件打开输出缓冲
; 如果你想将这个缓冲区限制到特定大小 - 你可以使用最大的字节数来代替'on',来作为这个指令的参数 (例如 output_buffering=4096).
output_buffering = off
; 你可以将所有你脚本输出的内容重定向到指定函数. 
; 例如, 如果你设置 output_handler 到 mb_output_handler,
; 字符编码会被转换成为指定的编码..
; 设置任何的输出处理句柄会自动打开输出缓冲.
; 注意: 如果想编写可移植脚本就不要依赖此ini配置
;       取而代之的是, 明确的使用 ob_start() 来设置输出处理句柄.
;       使用此ini指令可能引起问题,除非你很清楚的理解脚本正在做什么.
; 注意: 你不能同时使用 mb_output_handler 和 ob_iconv_handler
;       并且你不能同时使用 ob_gzhandler 和 zlib.output_compression.
; 注意: 如果使用zlib.output_handler指令开启zlib输出压缩, 该指令必须为空.
;output_handler =
; 使用zlib库对输出进行压缩
; 对此选项的有效值是 'off', 'on', 或者字节数 (用来压缩的缓冲大小 , 默认是 4kb)
; 注意: 结果的chunk大小可能由于压缩对象的大小而不同.
;       php输出块的大小一般压缩之后每个大小时几百个字节.
;       如果你希望藉由一个大块的堆大小来获取更好的性能, 需要额外的打开 output_buffering 选项.
; 注意: 你必须使用 zlib.output_handler 来替代标准的
;       output_handler, 否则输出可能会有问题.
zlib.output_compression = off
;zlib.output_compression_level = -1
; 这里激活 zlib.output_compression 之后,你无法再指定额外的输出处理.
; 这个设置和 output_handler 一样,但是处理顺序不同.
;zlib.output_handler =
; 立即刷新告知 php 让输出层在每次输出块之后立刻自动刷新.
; 这和每次调用print()或者echo()函数以及任何一种html块后调用flush()一样.
; 打开此选项会严重导致性能下降,一般只有用于调试情况下才建议打开.
implicit_flush = off
; 如果反序列器找到一个可以作为示例的未定义类.未序列化的回调函数会被调用(使用未定义的类名作为参数),
; 如果特定的函数未被定义或者如果此函数没有包含/实现丢失的类,则会发生一个警告.
; 如果只有你真想要实现类似的回调函数,才设定此入口.
unserialize_callback_func=
; 当浮点和双精度被序列化后,浮点号后由 serialize_precision 指定存储精确度的有效位数.
; 默认值是当浮点数被反序列解码后,数值仍旧相同.
serialize_precision = 100
; 是否打开强制通过引用传递参数给函数
; 此方法被反对并且很有可能在未来版本的php/zend中不再被支持.
; 被孤立的指定的方法是参数应该在函数被声明的时候按照引用传入.
; 你被鼓励来尝试上述方法并关闭此选项来确保你脚本在今后的新版本中仍旧可以正常工作 ( 每次你使用此特性的时候会受到一个警告
; 并且参数会传值而不是传引用).
allow_call_time_pass_reference = on
;
; 安全模式
;
safe_mode = off
; 默认情况下,安全模式在打开文件时,使用uid来比对检测.
; 如果你只想使用gid做宽松的比对,
; 打开 safe_mode_gid.
safe_mode_gid = off
; 当 safe_mode 被打开, 此目录下包含的文件和子文件夹的uid/gid 检测会被绕过.
; (目录必须在 include_path 中存在或者必须在包含时使用全路径)
safe_mode_include_dir =
; 当 safe_mode 被打开, 只有在 safe_mode_exec_dir 中定义的可执行文件能够通过exec函数组打开执行.
safe_mode_exec_dir =
; 设定某些的环境变量可能成为潜在的安全隐患.
; 此指令包含一个逗号分隔的前导列表.
; 在安全模式中, 用户可能只能改变符合这里所给出前导字符的变量.
; 默认情况下,用户只能改变以php_开头的变量(例如. php_foo=bar).
;
; 注意:  如果此指令为空, php会允许用户修改任何环境变量!
safe_mode_allowed_env_vars = php_
; 此指令包含了一个用逗号分隔的环境变量列表, 用户无法通过 putenv() 函数来修改列表中的环境变量.
; 这些变量即便已经在 safe_mode_allowed_env_vars 所设定的列表中,也会被被保护不允许修改.
safe_mode_protected_env_vars = ld_library_path
; 如果设置了open_basedir, 将会限制文件操作只能是此指令下的目录和子目录.
; 此指令对于每目录或者每虚拟主机配置文件最有意义. 此指令* 不会 *受安全模式开或者关的影响.
;open_basedir =
; 此指令允许你为了安全原因关闭指定的函数.
; 它接受以逗号分隔的函数名的列表.
; 此指令* 不会 *受安全模式开或者关的影响.
disable_functions =
; 此指令允许你由于安全原因关闭指定的类.
; 它接受以逗号分隔的类名的列表.
; 此指令* 不会 *受安全模式开或者关的影响.
disable_classes =
; 语法高亮模式的色彩. 任何在 中可接受的值都可以使用.
;highlight.string  = #dd0000
;highlight.comment = #ff9900
;highlight.keyword = #007700
;highlight.bg      = #ffffff
;highlight.default = #0000bb
;highlight.html    = #000000
; 如果打开, 即便用户放弃了的请求也会被执行完成.
; 在执行可能被用户打断或者浏览器超时所中断的请求时打开此选项.
; ignore_user_abort = on
; 指定php使
银川分类信息网,免费分类信息发布

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录