PHP.ini Chinese Version (4) for php-5.2

Source: Internet
Author: User
Tags eol what web server what header
PHP.ini Chinese version for php-5.2 (iv)

[Php-core-outputcontrol]

; Output control functions are useful, especially if you have already exported the information and sent an HTTP header.
; The output control function does not work on HTTP headers sent by functions such as header () or Setcookie (),
; It only affects information similar to the Echo () function output and the information embedded in the PHP code.

Implicit_flush= Off
; Whether the PHP output layer is required to automatically refresh the data after each output block.
; This is equivalent to automatically calling the flush () function after each print (), Echo (), and HTML block.
; Opening this option has a serious impact on the performance of the program, and is usually recommended for debugging purposes only.
; In the execution mode of the CLI SAPI, the directive defaults to on.

output_buffering= 0
; The output buffer size (in bytes). The recommended value is 4096~8192.
; Output buffering allows you to send HTTP headers (including cookies) even after you output the body content.
; The cost is that the output layer slows down a little bit.
; Setting output buffering can reduce writes and, in some cases, reduce the sending of network packets.
; The actual benefit of this parameter depends largely on what Web server you are using and what kind of script it is.

Output_handler=
; Redirects the output of all scripts to an output handler function.
; For example, when redirecting to the Mb_output_handler () function, the character encoding is transparently converted to the specified encoding.
; Once you have specified the output handler here, the output buffer will be automatically opened (output_buffering=4096).
; Note 0: Only PHP built-in functions can be used here, and custom functions should be specified in the script using Ob_start ().
; Note 1: A portable script cannot rely on this directive, but should explicitly specify an output handler function using the Ob_start () function.
; Using this instruction may cause errors in some scripts that you are unfamiliar with.
; NOTE 2: You cannot use both "Mb_output_handler" and "Ob_iconv_handler" two output processing functions at the same time.
; You cannot also use the "ob_gzhandler" output processing function and the Zlib.output_compression directive at the same time.
; Note 3: If you useZlib.output_handlerInstructionsOpen ZlibOutput compression, the directive must be empty.


[Php-core-directory]

include_path= ".:/ Path/to/php/pear "
; Specifies a set of directories for require (), include (), Fopen_with_path () functions to find files.
; The format is similar to the system's Path environment variable (under UNIX separated by colons, separated by semicolons under windows):
; UNIX: "/path1:/path2"
; Windows: "\path1;\path2"
; Use '. ' In the Include path A relative path can be allowed, which represents the current directory.

User_dir=
; Tell PHP which directory to look for when opening a script with/~username, only valid when not empty.
; That is, the basic directory name of the PHP file under the user directory, for example: "Public_html"

Extension_dir= "/path/to/php"
; The directory that holds the extension library (module), which is the directory that PHP uses to find the dynamic expansion module.
; The default is "C:/PHP5" under windows


[Php-core-http]

Default_mimetype= "Text/html"
Default_charset= ;" gb2312 "
; PHP automatically outputs "content-type:text/html" HTTP headers by default.
; If you set the Default_charset directive to "gb2312",
; Then it will automatically output "content-type:text/html; charset=gb2312 ".
; PHP6 opposes the use of default_charset directives, and unicode.output_encoding instructions are recommended.


[Php-core-unicode]

; PHP6 provides comprehensive Unicode support based on the ICU (International Components for Unicode) library.
; Need to use--with-icu-dir= at compile time Specifies the location where ICU header files and libraries are installed.
; In addition to Detect_unicode, the others are PHP6 new instructions.
;
; PHP6 's information is still scarce, so this part may be incomplete or even error.

Detect_unicode= On
; Indicates whether the Zend engine detects whether the script contains multibyte characters by checking the BOM (byte order mark) of the script.
; recommended to close. PHP6 has canceled this instruction and replaced its function with the unicode.script_encoding command.

Unicode.semantics= Off
; Whether Unicode support is enabled.
; If this command is turned on, then PHP will become a full Unicode environment, such as:
; All strings and variables accepted from HTTP will become Unicode, and all PHP identifiers can use Unicode characters.
; Also, PHP internally uses Unicode strings and is responsible for automatic conversion of peripheral non-Unicode characters.
; For example: HTTP input and output, stream, file system operation and so on, even php.ini itself will follow UTF-8 encoding to parse.
; After you open this command, you must explicitly specify a binary string. PHP will not make any assumptions about the contents of the binary string,
; Your program must therefore ensure that the binary string is handled appropriately.
; If you close this instruction, PHP behaves exactly the same as before:
; The string will not become Unicode, the file and binary strings will be backwards compatible, and php.ini will be parsed according to the "As-is" style.
; Regardless of whether this directive is turned on, all functions and operators are transparently supporting Unicode strings.

unicode.fallback_encoding= UTF-8
; Set default values for all other unicode.*_encoding directives.
; This means that if a unicode.*_encoding instruction is not explicitly set, the value set here will be used.

unicode.runtime_encoding=
; The run-time encoding specifies the encoding used by the PHP engine to convert binary strings internally.
; The settings here have no effect on I/O-related operations such as writing standard output/Read file system/decoding HTTP input variables.
; PHP also allows you to explicitly convert a string:
; (binary) $str--converted to binary string
; (Unicode) $str--Converts to a Unicode string
; (string) $str--Converts to a Unicode string if unicode.semantics is on, otherwise converted to a binary string
; For example, if the value of the directive is iso-8859-1 and $uni is a Unicode string, then
; $str= (binary) $uni
; Waits for a binary string to be encoded using ISO-8859-1.
; PHP converts the associated string implicitly to Unicode before it is manipulated before joining, comparing, passing parameters, and so on.
; For example, when you connect a binary string to Unicode,
; PHP will use the settings here to convert the binary string to a Unicode string before doing so.

unicode.output_encoding=
; The encoding used by the PHP output non-binary string.
; Automatically converts output such as ' print ' and ' echo ' to the encoding set here (does not convert binary strings).
; When writing data to an external resource such as a file,
; You must rely on the stream encoding feature or manually encode the data using Unicode extended functions.
; It is recommended to use the previous Default_charset directive in PHP6.
; The previous default_charset instruction only specifies the character set in the Content-type header, and does not make any conversion to the actual output.
; In PHP6, the Default_charset directive only works when the unicode.semantics is off.
; When this instruction is set, the value of the instruction is filled in the ' CharSet ' section of the Content-type output header.
; Regardless of how the default_charset instruction is set.

unicode.http_input_encoding=
; The encoding of the contents of variables (such as $_get and _$post) obtained through HTTP.
; Until April 2007 This feature is still in development ....

unicode.filesystem_encoding=
; The encoding of the file system's directory name and file name.
; File system-related functions (such as opendir ()) will use this encoding to accept and return filenames and directory names.
; The settings here must exactly match the encoding that the file system actually uses.

unicode.script_encoding=
; The default encoding of the PHP script itself.
; You can use any ICU-supported encoding to write PHP scripts.
; If you want to set its encoding for a separate script file, you can use it at the beginning of the script
; Declare (Encoding= ' Shift-jis ');?>
; To specify. Note: You must start with the first line and do not have any characters (including whitespace) at all.
; This method only affects the script in which it resides, and does not affect any other scripts that are included.

unicode.stream_encoding= UTF-8
Unicode.from_error_mode= 2
Unicode.from_error_subst_char= 3f
; No documents yet


[Php-core-misc]

auto_detect_line_endings= Off
; Whether to let PHP automatically detect line terminator (EOL).
; If your script has to deal with the Macintosh file,
; Or you run on the Macintosh while you're working on UNIX or Win32 files,
; Opening this command allows PHP to automatically detect EOL so that the fgets () and file () functions work correctly.
; But it also results in incompatible behavior for people who use a carriage return (CR) as a project delimiter under a UNIX system.
; In addition, there is a small loss of performance when detecting the EOL habits of the first line.

Browscap= ;" C:/windows/system32/inetsrv/browscap.ini "
; Only PWS and IIS need this setting
; You can get from http://www.garykeith.com/browsers/downloads.asp
; Get a Browscap.ini file.

Ignore_user_abort= Off
; Whether the entire request is persisted even after the user aborts the request.
; When executing a long request, you should consider opening it,
; Because long requests can cause a user to abort halfway or the browser to time out.

user_agent= ;" PHP "
; Define the "User-agent" string

; Url_rewriter.tags= "A=href,area=href,frame=src,form=,fieldset="
; Although this directive is part of the PHP core, it is used for the configuration of the session module

; extension=
; Load the dynamic extension at PHP startup. Example: extension=mysqli.so
; "=" can only be used after the name of the module file, but not the path information.
; The path information should be provided only by the EXTENSION_DIR directive.
; Idea, on Windows, the following extensions are already built in:
; Bcmath; Calendar; Com_dotnet; CType; session; filter; FTP; Hash
; Iconv; JSON; ODBC; Pcre; Reflection; Date; Libxml; Standard
; Tokenizer; zlib; SimpleXML; Dom; SPL; WDDX; XML; XmlReader; XmlWriter


[php-core-cgi]
; These instructions are only valid when PHP is running in CGI mode.

Doc_root=
; The "CGI root directory" of PHP. Valid only when not empty.
; Placing executable programs/scripts in the Web server's main document directory (such as "Htdocs") is considered unsafe,
; For example, the script is displayed as normal HTML because of configuration errors.
; As a result, many system administrators will set up a directory that is accessible only through CGI, outside of the main document directory.
; The contents of this directory will only be parsed and not displayed as is.
; If this is set, then PHP will only interpret the files in the Doc_root directory,
; and ensure that scripts outside the directory are not executed by the PHP interpreter (except User_dir).
; If Force_redirect is not specified when compiling PHP, and is run as CGI on a non-IIS server,
; You must set this directive (see the Security Section in the manual).
; The alternative is to use the Cgi.force_redirect directive.

Cgi.discard_path= Off
; No documents yet (PHP6 new instructions)

Cgi.fix_pathinfo= On
; Whether to provide true path_info/path_translated support for CGI (following the CGI specification).
; The previous behavior was to set path_translated to Script_filename, regardless of path_info.
; Turning on this option will allow PHP to correct its path to comply with the CGI specification, otherwise it will still use the old-fashioned, non-canonical behavior.
; Encourage you to open this directive and fix the script to use Script_filename instead of path_translated.
; For more information about PATH_INFO, see the CGI specification.

Cgi.force_redirect= On
; Whether to turn on CGI forced redirection. It is highly recommended to open the PHP that it is running as CGI to provide security protection.
; If you shut it down yourself, take responsibility for the consequences.
; Note: You must turn it off on the Iis/omnihttpd/xitami!

cgi.redirect_status_env=
; If Cgi.force_redirect=on, and runs PHP under a server other than Apache and Netscape,
; You may need to set a CGI redirect environment variable name, and PHP will look for it to see if it can continue to execute.
; Setting this variable can lead to a security breach, so be sure to figure out what you're doing before setting it up.

cgi.rfc2616_headers= 0
; Specifies what header PHP uses when sending HTTP response codes.
; 0 means sending a "Status:" header, which is supported by Apache and other Web servers.
; If set to 1, PHP uses the RFC2616 standard header.
; Keep its default value of 0 unless you know what you're doing

CGI.NPH= Off
; Whether to force the "status:200" status code to be sent for all requests in CGI mode.

Cgi.check_shebang_line= On
; Does CGI PHP check the top of the script to #! The starting line.
; This starting line is necessary if the script wants to be able to run both independently and in PHP CGI mode.
; If you open the directive, then CGI PHP will skip this line.

fastcgi.impersonate= Off
; FastCGI in IIS supports the ability to mimic client security tokens.
; This enables IIS to define the security context of the request on which the runtime is based.
; mod_fastcgi in Apache does not support this feature (03/17/2002)
; If running in IIS is set to ON, the default is off.

fastcgi.logging= On
; Whether the connection is logged through fastcgi.


[Php-core-weirdy]
; These options exist only in the document, but not in the output of the phpinfo () function

Async_send= Off
; Whether to send asynchronously.

from= ;" John@doe.com "
; Define the password for anonymous FTP (an email address)
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.