PHP.ini Chinese configuration instructions_PHP tutorial

WBOY
Release: 2016-07-13 10:50:00
Original
834 people have browsed it

This article will introduce you to the Chinese configuration instructions of PHP.ini. I hope that students who need to understand the php.ini configuration file will not hesitate to refer to it.

php.ini Chinese configuration instructions

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

; Warning ;

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

; This configuration file is the default setting for new PHP installations.

; By default, PHP is installed using this configuration file

; This configuration is for development purposes and is *not* intended for production environments

; Based on some security considerations, before your website goes online, please consider using php.ini-recommended

; and online documentation http://php.net/manual/en/security.php.

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

; About php.ini ;

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

; This file controls many aspects of PHP's behavior. In order for PHP to read it

; must be named 'php.ini'. PHP is in its current working directory, the directory specified by the PHPRC environment variable

; and the directories specified at compile time (in this order) to find this file

; In Windows environment, the compilation directory is the Windows directory.

; The directory where php.ini is searched in command line mode can be overridden by the -c parameter.

;

; The syntax of this file is very simple.

; Empty lines and lines starting with a semicolon are ignored (as you may have guessed).

; The beginning of a paragraph (e.g. [Foo]) will also be silently ignored

; even though they may have other uses in the future.

;

; Use the following syntax to set commands:

; directive = value

; directive = value

; Command names are *case sensitive* - foo=bar and FOO=bar are different.

;

; Values ​​can be strings, numbers, PHP constants (such as E_ALL and M_PI),

; INI constant (On, Off, True, False, Yes, No and None) or an expression

; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").

;

; Expressions in INI files can only use logical operations and parentheses:

; | Logical OR

; & Logical AND

; ~ Logical negation

; ! Negation

;

; Logical flags can be turned on using 1, On, True or Yes.

; You can also use 0, Off, False or No to turn it off.

;

; Writing nothing after the equal sign represents an empty string

; or use None keyword:

;

; foo = ; ; Set foo to an empty string

; foo = none ; Set foo to an empty string

; foo = "none" ; Set foo to the string 'none'

;

; If you use a constant in the value, and the constant belongs to a dynamically loaded extension module

; (whether it is a PHP extension or a Zend extension),

; Then you can only use these constants *after* loading these extensions.

;

;

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

; About this document ;

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

; All values ​​in the php.ini-dist file are equivalent to the built-in default values ​​

; (That is, if php.ini is not used, or if you delete these lines,

; just like the built-in default value).

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

; Language options;

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

; Open the PHP scripting language engine under Apache

engine = On

; Turn on Zend Engine compatibility mode (PHP 4.x)

zend.ze1_compatibility_mode = Off

; allows the tags are considered PHP scripts.

; Note: Try to avoid using abbreviated tags when developing redistributable programs or libraries, or publishing them on servers that are not under your control,

; Because the abbreviated tag may not be supported by the target server. For portability and redistributable code, please do not use the abbreviated tag

short_open_tag = On

; Use ASP style <% %> tags.

asp_tags = Off

; The number of significant digits in the floating point number (floating point precision).

precision = 12

; Force 2000 compatibility (may cause problems with incompatible browsers)

y2k_compliance = On

; Output buffering allows sending headers (including cookies) after you send the body content

; At the cost of slightly slowing down the PHP output layer

; You can call the output buffering function at runtime to turn on this feature

; You can also set this directive to On to enable output buffering for all files

; If you want to limit this buffer to a specific size - you can use the maximum number of bytes instead of 'On' as the argument to this command (e.g. output_buffering=4096).

output_buffering = Off

; You can redirect all output of your script to the specified function.

; For example, if you set output_handler to "mb_output_handler",

; The character encoding will be converted to the specified encoding..

; Setting any output handler will automatically open the output buffer.

; NOTE: Do not rely on this INI configuration if you want to write portable scripts

; Instead, explicitly use ob_start() to set the output handler.

; Using this ini directive may cause problems unless you clearly understand what the script is doing.

; NOTE: You cannot use "mb_output_handler" and "ob_iconv_handler" at the same time

; And you cannot use "ob_gzhandler" and "zlib.output_compression" at the same time.

; Note: If you use the zlib.output_handler directive to enable zlib output compression, this directive must be empty.

;output_handler =

; Use zlib library to compress output

; Valid values ​​for this option are 'off', 'on', or number of bytes (buffer size used for compression, default is 4KB)

; Note: The resulting chunk size may vary due to the size of the compressed object.

; The size of PHP output blocks is generally several hundred bytes per size after compression.

; If you want to get better performance with a larger heap size, you need to additionally turn on the output_buffering option.

; NOTE: You must use zlib.output_handler instead of the standard

; output_handler, otherwise there may be problems with the output.

zlib.output_compression = Off

;zlib.output_compression_level = -1

; After activating zlib.output_compression here, you cannot specify additional output processing.

; This setting is the same as output_handler, but the processing order is different.

;zlib.output_handler =

; Refresh now tells PHP to automatically refresh the output layer immediately after each output block.

; This is the same as calling flush() after every call to the print() or echo() function and any kind of HTML block.

; Turning this option on will seriously degrade performance and is generally only recommended for debugging.

implicit_flush = Off

; If the deserializer finds an undefined class that can be used as an example, the unserialized callback function will be called (with the undefined class name as argument),

; A warning will occur if a specific function is not defined or if this function does not contain/implement the missing class.

; Set this entry only if you really want to implement a similar callback function.

unserialize_callback_func=

; When floating point and double precision are serialized, the number of significant digits of storage precision specified by serialize_precision after the floating point number.

; The default value is that when the floating point number is deserialized and decoded, the value remains the same.

serialize_precision = 100

; Whether to enable forcing parameters to be passed to functions by reference

; This method is deprecated and will likely no longer be supported in future versions of PHP/Zend.

; The way to specify in isolation is that the parameters should be passed in by reference when the function is declared.

; You are encouraged to try the above method and turn this option off to ensure that your scripts will still work properly in future versions (you will receive a warning each time you use this feature

; and the parameters will be passed by value instead of reference).

allow_call_time_pass_reference = On

;

; Safe Mode

;

safe_mode = Off

; By default, safe mode uses UID for comparison and detection when opening a file.

; If you only want to use GID for loose comparison,

; Open safe_mode_gid.

safe_mode_gid = Off

; When safe_mode is turned on, UID/GID detection of files and subfolders contained in this directory will be bypassed.

; (The directory must exist in include_path or the full path must be used when including)

safe_mode_include_dir =

; When safe_mode is turned on, only executable files defined in safe_mode_exec_dir can be opened for execution through the exec function group.

safe_mode_exec_dir =

; Setting certain environment variables may become a potential security risk.

; This directive contains a comma separated list of leaders.

; In safe mode, the user may only change variables matching the leading characters given here.

; By default, users can only change variables starting with PHP_ (for example. PHP_FOO=BAR).

;

; Note: If this directive is empty, PHP will allow users to modify any environment variables!

safe_mode_allowed_env_vars = PHP_

; This command contains a comma-separated list of environment variables. Users cannot modify the environment variables in the list through the putenv() function.

; Even if these variables are already in the list set by safe_mode_allowed_env_vars, they will be protected and not allowed to be modified.

safe_mode_protected_env_vars = LD_LIBRARY_PATH

; If open_basedir is set, file operations will be limited to the directories and subdirectories under this command.

; This directive is most meaningful for per-directory or per-vhost configuration files. This directive *is not* affected by whether safe mode is on or off.

;open_basedir =

; This directive allows you to disable specified functions for security reasons.

; It accepts a comma separated list of function names.

; This command *is not* affected by whether safe mode is on or off.

disable_functions =

; This directive allows you to close a specified class for security reasons.

; It accepts a comma separated list of class names.

; This command *is not* affected by whether safe mode is on or off.

disable_classes =

; Color for syntax highlighting mode. Any value acceptable in can be used.

;highlight.string = #DD0000

;highlight.comment = #FF9900

;highlight.keyword = #007700

;highlight.bg = #FFFFFF

;highlight.default = #0000BB

;highlight.html = #000000

; If turned on, the request will be completed even if the user gives up.

; Turn on this option when executing requests that may be interrupted by the user or browser timeout.

; ignore_user_abort = On

; Specifies the actual path buffer used by PHP. This value should be increased on systems where PHP opens many files to handle many file operations.

; realpath_cache_size=16k

; The number of seconds to cache real path information for a given file or directory. Consider increasing this value for systems that rarely modify files.

; realpath_cache_ttl=120

;

; Others

;

; Take into account the fact that PHP may be exposed on the server on which it is installed (e.g. signed as a header by a web server).

; While this is not a security threat in any case, it may still be exposed if PHP is being used on your server.

expose_php = On

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

; Resource limit;

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

; Maximum execution seconds for each script

max_execution_time = 30

; Maximum time each script takes to analyze request data

max_input_time = 60

; Maximum nesting level of input variables

;max_input_nesting_level = 64

; Maximum amount of memory each script can use (128MB)

memory_limit = 128M

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

; Error handling and logging;

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

; Error reporting is one bit. Or each value to get the final reporting level

; E_ALL - all errors and warnings (excluding E_STRICT)

; E_ERROR    — Fatal runtime error

; E_RECOVERABLE_ERROR - almost fatal runtime error

; E_WARNING - runtime warning (non-fatal error)

; E_PARSE - compile-time syntax error

; E_NOTICE - Runtime alerts (These warnings are often caused by bugs in your code, but may also be intentional behavior (for example, using an uninitialized variable and relying on it to be automatically initialized to an empty string facts)

; E_STRICT - Runtime reminder, after opening, PHP will give you the most portable and backward-compatible suggestions for your code

; E_CORE_ERROR - Fatal error during PHP initialization startup

; E_CORE_WARNING - Warning (non-fatal error) that occurred during PHP initialization

; E_COMPILE_ERROR - Fatal compile-time error

; E_COMPILE_WARNING - compile-time warning (non-fatal)

; E_USER_ERROR - user generated error message

; E_USER_WARNING - user generated warning message

; E_USER_NOTICE - User-generated prompt message

;

;Example:

;

; - Show all errors, except prompts and code standards warnings

;

;error_reporting = E_ALL & ~E_NOTICE

;

; - Show all errors except prompts

;

;error_reporting = E_ALL & ~E_NOTICE | E_STRICT

;

; - only show errors

;

;error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR

;

; - Shows errors other than prompts and code standards warnings

;

error_reporting = E_ALL & ~E_NOTICE

; Print out errors (as part of the output). For production sites,

; It is strongly recommended that you turn this option off and use the error log instead (see below for details).

; Turning on display_errors on a production web site may leak security information to the end user, such as the file path of the web server, the structure of your database, or other information.

;

; Available values ​​for display_errors:

;

; Off - Do not display any error message

; stderr - Output error information to STDERR (only valid in CGI/CLI format!)

;

;display_errors = "stderr"

;

; stdout (On) - output error information to STDOUT

;

display_errors = On

; Even when display_errors is turned on, errors that occur during the PHP startup sequence will not be displayed.

; It is strongly recommended that you keep display_startup_errors turned off unless troubleshooting

display_startup_errors = Off

; Enter the error into the log file (server-specified log, stderr or error_log (specified below))

; As mentioned above, it is strongly recommended that you use error logging instead of error display in production web sites.

log_errors = Off

; Set the maximum length of log_errors. Information about the source in error_log is also counted.

; The default is 1024, set to 0 to not limit any maximum length.

log_errors_max_len = 1024

; Do not log duplicate information. Information must appear in the same line of the same file to be considered duplicate information, unless ignore_repeated_source is set to true.

ignore_repeated_errors = Off

; Ignore the source of the message when ignoring duplicate messages. When this setting is turned on, the same message from different files or different lines will no longer be logged.

ignore_repeated_source = Off

; If this option is set to Off, memory leaks will not be displayed (either on stdout or in the log).

; This item is only valid in debug compilation mode, and the error report needs to contain E_WARNING

report_memleaks = On

;report_zend_debug = 0

; Save the last error/warning message (logical value) in $php_errormsg.

track_errors = Off

; Close the HTML tag contained in the error message.

; Note: Never use this feature in a production environment.

;html_errors = Off

; If html_errors is set to On, PHP will generate a clickable error message. Clicking it will jump to a page describing the error or the specific information of the function that caused the error.

; You can download a copy of the PHP manual from http://www.php.net/docs.php

; And point docref_root to the one starting with '/' where you placed the local copy.

; You must also specify a file extension that includes a dot.

; Note: Never use this feature in a production environment.

;docref_root = "/phpmanual/"

;docref_ext = .html

; A string appended before the output error message.

;error_prepend_string = ""

; A string appended after the output error message.

;error_append_string = ""

; Log errors to the specified file.

;error_log = filename

; Log errors to syslog (Event Log on NT systems is not available under Windows 95).

;error_log = syslog

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

; File processing;

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

;

; Note - track_vars is always on in PHP 4.0.3

; The symbol used to separate parameters in the URL generated by PHP.

; Default is "&".

;arg_separator.output = "&"

; The delimiter used by PHP to split URLs into variables.

; Default is "&".

; Note: All characters contained in the directive will be considered delimiters!

;arg_separator.input = ";&"

; This directive describes the order in which PHP registers GET, POST, Cookie, environment and built-in variables (using G, P, C, E and S respectively, generally using EGPCS or GPC). Registration uses the order from left to right , the new value will overwrite the old value.

variables_order = "EGPCS"

; Whether to register the EGPCS variable as a global variable.

; If you don’t want your script’s global variables to be cluttered with user data, you need to turn this option off

; This is usually turned on with track_vars - in this case you can access all GPC variables via $HTTP_*_VARS[].

;

; You should try to write the script so you don’t have to open register_globals

; If the code is not carefully considered, using variables as globals may easily lead to potential security vulnerabilities.

register_globals = Off

; Whether to register old-form input arrays, HTTP_GET_VARS and related arrays

; If you don’t use them, it is recommended to turn them off to improve performance.

register_long_arrays = On

; This command lets PHP confirm whether to declare argv&argc variables (these variables will contain GET information).

; If you do not use these variables, this option should be turned off to improve performance.

register_argc_argv = On

; When turned on, SERVER and ENV variables will be created when they are first used instead of when the script starts (runtime)

; If these variables are not used in the script, turning this on will increase performance a little.

; To make this directive effective, the PHP directive register_globals, register_long_arrays,

; and register_argc_argv must be turned off.

auto_globals_jit = On

; The maximum POST data size that PHP can accept.

post_max_size = 8M

; Magic quotes

;

; Turn on Magic quotes for GET/POST/Cookie data.

magic_quotes_gpc = On

; Open Magic quotes for real-time generated data, such as data obtained from SQL, data returned from exec(), etc.

magic_quotes_runtime = Off

; Use Sybase-style magic quotes (use " to introduce 'replacements').

magic_quotes_sybase = Off

; Automatically add files before or after any PHP document.

auto_prepend_file =

auto_append_file =

; Like 4.0b4, PHP always uses the default encoding in the header Content-type: to output characters.

; Set this to empty to disable sending the character set.

;

; PHP’s built-in default is text/html

default_mimetype = "text/html"

;default_charset = "iso-8859-1"

; Always populate the $HTTP_RAW_POST_DATA variable.

;always_populate_raw_post_data = On

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

; Path and directory;

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

; UNIX: "/path1:/path2"

;include_path = ".:/php/includes"

;

; Windows: "path1;path2"

;include_path = ".;c:phpincludes"

; The root path of the PHP page, only valid if it is not empty.

; If PHP is not compiled with FORCE_REDIRECT, if you run php as CGI under any web server (except IIS), you must set doc_root

; See documentation for security issues. An alternative is to use cgi.force_redirect below

doc_root =

; PHP uses /~username to open the directory of the script, which is valid only if it is not empty.

user_dir =

; Directory location of loadable extensions (modules).

extension_dir = "./"

; Whether to enable the dl() function. The dl() function cannot run normally under multi-threaded services, such as IIS or Zeus, and will be automatically disabled under these service software.

enable_dl = On

; In most web servers, cgi.force_redirect is necessary to provide safe execution of PHP as CGI.

; Without configuration, PHP will open this item by default.

; You can turn this off here and do so at your own risk

; **You can safely turn this off in IIS, in fact, you must turn it off.**

; cgi.force_redirect = 1

; If cgi.nph is opened, it will force CGI to send Status: 200 on every request.

; cgi.nph = 1

; If cgi.force_redirect is turned on and you are not running under an Apache or Netscape (iPlanet) web server,

; You may need to set an environment variable name for PHP to find so that it can be obtained and then continue execution. Setting this variable may cause security issues, please understand the possible consequences before setting it.

; cgi.redirect_status_env = ;

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  

; PHP's preprocessing behavior is to set PATH_TRANSLATED to SCRIPT_FILENAME, and not guess what PATH_INFO is.

; For more information about PATH_INFO, see the cgi specification.  

; Setting this value to 1 will cause PHP CGI to modify its paths to comply with the specification.

; Setting to 0 will cause PHP to behave like the previous one. Default is 1. You should fix your script to use SCRIPT_FILENAME instead of PATH_TRANSLATED.

; cgi.fix_pathinfo=0

; FastCGI under IIS (under WINNT-based operating systems) supports the ability to override the call client's security token.

; This enables IIS to define the security context under which it runs.

; mod_fastcgi under Apache does not currently support this feature (03/17/2002)

; Set to 1 if running under IIS. Default is 0.

; fastcgi.impersonate = 1;

; Turn off logging via FastCGI connection

; fastcgi.logging = 0

; The cgi.rfc2616_headers configuration option tells PHP what type of headers to use when sending HTTP response codes

; If set to 0, PHP sends the Status: header supported by Apache.

; When set to 1, PHP will send RFC2616 compliant header information.

; Default is 0.

; cgi.rfc2616_headers = 0

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

; File upload;

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

; Whether to allow HTTP file upload.

file_uploads = On

; Temporary file directory for HTTP upload files (if not specified, the system default will be used).

;upload_tmp_dir =

; Maximum file size allowed to be uploaded.

upload_max_filesize = 2M

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

; Fopen packaging;

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

; Whether to allow URLs as files (such as http:// or ftp://).

allow_url_fopen = On

; Whether to allow include/require URLs as files (such as http:// or ftp://).

allow_url_include = Off

; define anonymous ftp password (your email address)

;from="john@doe.com"

; Define User-Agent string

; user_agent="PHP"

; Define the timeout period (seconds) of the stream-based socket interface

default_socket_timeout = 60

; If your script must process files from a Macintosh system,

; Or you are running on a Mac and need to process files from a unix or win32 system,

; Setting this flag will cause PHP to automatically detect the EOL characters of these files, so that fgets() and file() can process them directly regardless of the source of the file.

; auto_detect_line_endings = Off

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

; Dynamic expansion;

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

;

; If you want the extension to load automatically, use the following syntax:

;

; extension=modulename.extension

;

; For example, on Windows:

;

; extension=msql.dll

;

; ... or under UNIX:

;

; extension=msql.so

;

; Note: This should only be the name of the module;

; The directory information of the module is not required here.

; Use the extension_dir directive above to specify the location of the extension.

; Windows Extensions

; Note: ODBC support has been built in, so no dll for ODBC is required.

; Note: Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5) directory, downloaded together with the split PECL DLL (PHP 5).

; Make sure the correct extension_dir directive is set.

;extension=php_bz2.dll

;extension=php_curl.dll

;extension=php_dba.dll

;extension=php_dbase.dll

;extension=php_exif.dll

;extension=php_fdf.dll

;extension=php_gd2.dll

;extension=php_gettext.dll

;extension=php_gmp.dll

;extension=php_ifx.dll

;extension=php_imap.dll

;extension=php_interbase.dll

;extension=php_ldap.dll

;extension=php_mbstring.dll

;extension=php_mcrypt.dll

;extension=php_mhash.dll

;extension=php_mime_magic.dll

;extension=php_ming.dll

;extension=php_msql.dll

;extension=php_mssql.dll

;extension=php_mysql.dll

;extension=php_mysqli.dll

;extension=php_oci8.dll

;extension=php_openssl.dll

;extension=php_pdo.dll

;extension=php_pdo_firebird.dll

;extension=php_pdo_mssql.dll

;extension=php_pdo_mysql.dll

;extension=php_pdo_oci.dll

;extension=php_pdo_oci8.dll

;extension=php_pdo_odbc.dll

;extension=php_pdo_pgsql.dll

;extension=php_pdo_sqlite.dll

;extension=php_pgsql.dll

;extension=php_pspell.dll

;extension=php_shmop.dll

;extension=php_snmp.dll

;extension=php_soap.dll

;extension=php_sockets.dll

;extension=php_sqlite.dll

;extension=php_sybase_ct.dll

;extension=php_tidy.dll

;extension=php_xmlrpc.dll

;extension=php_xsl.dll

;extension=php_zip.dll

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

; Module settings;

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

[Date]

; Define the default time zone used by the date function

;date.timezone =

;date.default_latitude = 31.7667

;date.default_longitude = 35.2333

;date.sunrise_zenith = 90.583333

;date.sunset_zenith = 90.583333

[filter]

;filter.default = unsafe_raw

;filter.default_flags =

[iconv]

;iconv.input_encoding = ISO-8859-1

;iconv.internal_encoding = ISO-8859-1

;iconv.output_encoding = ISO-8859-1

[sqlite]

;sqlite.assoc_case = 0

[xmlrpc]

;xmlrpc_error_number = 0

;xmlrpc_errors = 0

[Pcre]

;PCRE library response tracking limitations.

;pcre.backtrack_limit=100000

;PCRE library recursion limit.

; Please note that if you set this to a high value, you may exhaust all available process heap and eventually crash PHP (due to reaching the operating system-enforced heap size limit).

;pcre.recursion_limit=100000

[Syslog]

; Whether to define different syslog variables (for example. $LOG_PID,

; $LOG_CRON, etc.). Turning this option off may benefit performance.

; At runtime, you can call the define_syslog_variables() function to define these variables.

define_syslog_variables = Off

[mail function]

; For Win32.

SMTP = localhost

smtp_port = 25

; For Win32.

;sendmail_from = me@example.com

; For Unix. Can support parameters (default: "sendmail -t -i").

;sendmail_path =

; Forces additional specified parameters to be passed as extended parameters to the sendmail executable file.

; These parameters always replace the value of the fifth parameter of the mail() function, even in safe mode.

;mail.force_extra_parameters =

[SQL]

sql.safe_mode = Off

[ODBC]

;odbc.default_db = currently invalid

;odbc.default_user = currently invalid

;odbc.default_pw = currently invalid

; Allow or block persistent connections.

odbc.allow_persistent = On

; Check if the connection is available before reusing.

odbc.check_persistent = On

; Maximum number of persistent connections. -1 means no limit.

odbc.max_persistent = -1

; Maximum number of connections (persistent + non-persistent). -1 means no limit.

odbc.max_links = -1

; Long field processing. Returns the number of bytes of the variable. 0 means skip.

odbc.defaultlrl = 4096

; Binary data processing. 0 means skip, 1 returns as actual, 2 converts to characters.

; See the documentation for odbc_binmode and odbc_longreadlen for explanations of uodbc.defaultlrl and uodbc.defaultbinmode

odbc.defaultbinmode = 1

[MySQL]

; Allow or block persistent connections.

mysql.allow_persistent = On

; Maximum number of persistent connections. -1 means no limit.

mysql.max_persistent = -1

; Maximum number of connections (persistent + non-persistent). -1 means no limit.

mysql.max_links = -1

; The default port number of mysql_connect(). If not set, mysql_connect() will use $MYSQL_TCP_PORT

; Or the mysql-tcp entry located in /etc/services or the MYSQL_PORT value defined at compile time (search in this order).

; Win32 will only look for the MYSQL_PORT value.

mysql.default_port =

; The default socket name for local MySQL connections. If empty, the MySQL built-in default value is used.

mysql.default_socket =

; The default host value of mysql_connect() (will not take effect in safe mode).

mysql.default_host =

; The default user value of mysql_connect() (will not take effect in safe mode).

mysql.default_user =

; The default password value of mysql_connect() (will not take effect in safe mode).

; Note that saving passwords in this file is generally a *bad* doctrine.

; *Any* user using PHP can execute 'echo get_cfg_var("mysql.default_password")

; And get this password! And of course, any user with read permission to this file can get this password.

mysql.default_password =

; Maximum time for connection timeout (seconds), -1 means no limit.

mysql.connect_timeout = 60

; Trace mode. When trace_mode is turned on (=On), table/index scan warnings and SQL errors will be displayed.

mysql.trace_mode = Off

[MySQLi]

; Maximum number of connections. -1 means no limit.

mysqli.max_links = -1

; The default port number of mysqli_connect(). If not set, mysql_connect() will use $MYSQL_TCP_PORT

; Or the mysql-tcp entry located in /etc/services or the MYSQL_PORT value defined at compile time (search in this order).

; Win32 will only look for the MYSQL_PORT value.

mysqli.default_port = 3306

; The default socket name for local MySQL connections. If empty, the MySQL built-in default value is used.

mysqli.default_socket =

; The default host value of mysqli_connect() (will not take effect in safe mode).

mysqli.default_host =

; The default user value of mysqli_connect() (will not take effect in safe mode).

mysqli.default_user =

; The default password value of mysqli_connect() (will not take effect in safe mode).

; Note that saving passwords in this file is generally a *bad* doctrine.

; *Any* user using PHP can execute 'echo get_cfg_var("mysqli.default_password")

; And get this password! And of course, any user with read permission to this file can get this password.

mysqli.default_pw =

; Allow or block persistent connections.

mysqli.reconnect = Off

[mSQL]

; Allow or block persistent connections.

msql.allow_persistent = On

; Maximum number of persistent connections. -1 means no limit.

msql.max_persistent = -1

; Maximum number of connections (persistent + non-persistent). -1 means no limit.

msql.max_links = -1

[OCI8]

; Open an authorized connection using external authentication (OCI_SYSOPER, OCI_SYSDBA)

;oci8.privileged_connect = Off

; Connections: Maximum number of persistent OCI8 connections per process, -1 means no limit.

;oci8.max_persistent = -1

; Connection: The maximum number of seconds a process is allowed to maintain an idle persistent connection.

; -1 means that idle persistent connections will be maintained forever.

;oci8.persistent_timeout = -1

; Connection: The number of seconds that must pass between each ping when oci_pconnect() checks whether a connection is valid.

; When set to 0, each oci_pconnect() will initiate a ping. Using -1 turns off ping completely.

;oci8.ping_interval = 60

; Tuning: This option turns on statement cache, and specifies how many statements to cache. Use 0 to turn off statement cache.

;oci8.statement_cache_size = 20

; Tuning: Turn on statement prefetch and set the number of rows automatically fetched after the statement is executed.

;oci8.default_prefetch = 10

; Compatibility: Setting to On means that oci_close() will not close the connection of oci_connect() and oci_new_connect().

;oci8.old_oci_close_semantics = Off

[PostgresSQL]

; Allow or block persistent connections.

pgsql.allow_persistent = On

; Always detect broken persistent connections during pg_pconnect().

; The auto-reset feature incurs a little overhead.

pgsql.auto_reset_persistent = Off

; Maximum number of persistent connections. -1 means no limit.

pgsql.max_persistent = -1

; Maximum number of connections (persistent + non-persistent). -1 means no limit.

pgsql.max_links = -1

; Whether to ignore PostgreSQL backend notification messages.

; Notification message recording will require some overhead.

pgsql.ignore_notice = 0

; Whether to log PostgreSQL backend notification messages.

; Unless pgsql.ignore_notice=0, the module cannot record notification messages

pgsql.log_notice = 0

[Sybase]

; Allow or block persistent connections.

sybase.allow_persistent = On

; Maximum number of persistent connections. -1 means no limit.

sybase.max_persistent = -1

; Maximum number of connections (persistent + non-persistent). -1 means no limit.

sybase.max_links = -1

;sybase.interface_file = "/usr/sybase/interfaces"

; The minimum severity of the message displayed.

sybase.min_error_severity = 10

; The minimum severity of the message displayed.

sybase.min_message_severity = 10

; Compatible with the old version of PHP 3.0 mode.

; If set to on, it will cause PHP to automatically bind the result record type to the Sybase type, instead of processing them all as strings.

; This compatibility mode may not be permanent, so it is best to try to make the necessary changes in your code where needed, and then turn off this option.

sybase.compatability_mode = Off

[Sybase-CT]

; Allow or block persistent connections.

sybct.allow_persistent = On

; Maximum number of persistent connections. -1 means no limit.

sybct.max_persistent = -1

; Maximum number of connections (persistent + non-persistent). -1 means no limit.

sybct.max_links = -1

; The minimum severity of the error displayed.

sybct.min_server_severity = 10

; The minimum severity of the message displayed.

sybct.min_client_severity = 10

[bcmath]

; The number of decimal places for all bcmath functions

bcmath.scale = 0

[browscap]

;browscap = extra/browscap.ini

[Informix]

; Default host for ifx_connect() (not applied in safe mode).

ifx.default_host =

; Default user for ifx_connect() (not applied in safe mode).

ifx.default_user =

; Default password for ifx_connect() (not applied in safe mode).

ifx.default_password =

; Allow or block persistent connections.

ifx.allow_persistent = On

; Maximum number of persistent connections. -1 means no limit.

ifx.max_persistent = -1

; Maximum number of connections (persistent + non-persistent). -1 means no limit.

ifx.max_links = -1

; If set to on, the select statement returns the content of the text segment instead of its id.

ifx.textasvarchar = 0

; If set to on, the select statement returns the contents of the byte segment instead of its id.

ifx.byteasvarchar = 0

; Trailing spaces of fixed-length character columns will be truncated. May be helpful to Informix SE users.

ifx.charasvarchar = 0

; If set to on, text and byte segments will be dumped to a file instead of retaining them in memory.

ifx.blobinfile = 0

; NULL will be returned as an empty string unless set to 1. If set to 1, NULL will be returned as the string 'NULL'.

ifx.nullformat = 0

[Session]

; Processing method used to store/retrieve data.

session.save_handler = files

; Parameters passed to save_handler. In the case of using files, this is the path where the data file is saved.

; Note: Windows users must change this value to use PHP's session functions.

;

; As in 4.0.1, you can define the following path:

;

; session.save_path = "N;/path"

;

; where N is an integer. Using this parameter will create an N-level subdirectory in the directory to save session files,

; Instead of saving all session files in the same /path directory.

; This can be helpful if you or your operating system has problems saving too many files in one directory.

; And provide higher efficiency for servers that handle a large number of sessions.

;

; Note 1: PHP does not automatically create the directory structure. You can use the script in the ext/session directory to create the directory structure.

; Note 2: If you choose to use a subdirectory to save sessions, please check the configuration section about garbage collection below

;

; The file storage module uses 600 mode by default to create files. You can change this option during use

;

; session.save_path = "N;MODE;/path"

;

; The MODE here is represented by octal. Note that the umask of the process will not be overridden here.

;session.save_path = "/tmp"

; Whether to use cookies.

session.use_cookies = 1

;session.cookie_secure =

; This option allows administrators to protect users who send session IDs in URLs from attacks

; Default is 0.

; session.use_only_cookies = 1

; The name of the session (used as the cookie name).

session.name = PHPSESSID

; Initialize the session at the beginning of the request.

session.auto_start = 0

; The number of seconds for the cookie to live, or until the browser is restarted if it is 0.

session.cookie_lifetime = 0

; Valid cookie path.

session.cookie_path = /

; Cookie valid domain name.

session.cookie_domain =

; Whether to add the httpOnly flag to the cookie. After adding it, the cookie cannot be accessed by the browser's script language (such as JavaScript).

session.cookie_httponly =

; Processor for serializing data. php is the standard PHP serializer.

session.serialize_handler = php

; Define the proportion of 'garbage collection' process started each time the session is initialized.

; The ratio is derived from gc_probability/gc_divisor,

; For example. 1/100 means there is a 1% chance of starting the 'garbage collection' process on each request.

session.gc_probability = 1

session.gc_divisor = 100

; After the following number of seconds, the stored data will be considered 'garbage' and cleaned up by the garbage collection process.

session.gc_maxlifetime = 1440

; NOTE: If you use the subdirectory option to save session files

; (see session.save_path above), then garbage collection will *not* happen automatically.

; You need to handle garbage collection yourself through a shell script, cron or other methods.

; For example, the following script is equivalent to setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):

; cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and earlier versions have an undocumented feature/bug that allows you to globally initialize a session variable even if register_globals has been turned off.

; PHP 4.3 and earlier will warn you if this feature is used.

; You can turn off this feature and isolate this warning. At this time, if bug_compat_42 is turned on, the warning will only be displayed.

session.bug_compat_42 = 1

session.bug_compat_warn = 1

; Check HTTP Referer to prevent external URLs with ids.

; HTTP_REFERER must contain this field from the session to be considered legal.

session.referer_check =

; How many bytes to read from this file.

session.entropy_length = 0

; Specify the created session id here.

session.entropy_file =

;session.entropy_length = 16

;session.entropy_file = /dev/urandom

; Set to {nocache,private,public,} to determine the type of HTTP buffering

; Leave blank to prevent sending anti-caching headers.

session.cache_limiter = nocache

; The document expires in n minutes.

session.cache_expire = 180

; trans sid support is turned off by default.

; Using trans sid may expose your users to security risks.

; Be careful when using this.

; - Users may send URLs containing valid session IDs to others via email/irc/other channels.

; - URLs containing valid session IDs may be stored on computers that are easily accessible to the public.

; - Users may access your site through a URL containing the same session ID in their browser history or favorites.

session.use_trans_sid = 0

; Select hash method

; 0: MD5 (128 bits)

; 1: SHA-1 (160 bits)

session.hash_function = 0

; When converting binary hash data to readable form, how many bits are saved per character.

;

; 4 bits: 0-9, a-f

; 5 bits: 0-9, a-v

; 6 bits: 0-9, a-z, A-Z, "-", ","

session.hash_bits_per_character = 4

; URL rewriter will search for URLs within a defined set of HTML tags.

; form/fieldset are special characters; if you include them here, rewriter will add a hidden field containing the information otherwise append the information to the URL.

; If you want to comply with XHTML, delete the form entry.

; Note that all valid entries require a "=" symbol, even those without any value.

url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

[MSSQL]

; Allow or block persistent connections.

mssql.allow_persistent = On

; Maximum number of persistent connections. -1 means no limit.

mssql.max_persistent = -1

; Maximum number of connections (persistent + non-persistent). -1 means no limit.

mssql.max_links = -1

; The minimum severity of the error displayed.

mssql.min_error_severity = 10

; The minimum severity of the message displayed.

mssql.min_message_severity = 10

; Compatibility mode for PHP 3.0 old version.

mssql.compatability_mode = Off

; Connection timeout

;mssql.connect_timeout = 5

; Query timeout

;mssql.timeout = 60

; Valid range 0 - 2147483647. Default = 4096.

;mssql.textlimit = 4096

; Valid range 0 - 2147483647. Default = 4096.

;mssql.textsize = 4096

; Number of records per batch limit. 0 = All records in one batch.

;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned

; On => Convert the returned data to the format set by the SQL server

; Off => Use YYYY-MM-DD hh:mm:ss to return

;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server

mssql.secure_connection = Off

; Specifies the maximum number of processes. -1 = library default

; msdlib default 25

; FreeTDS default 4096

;mssql.max_procs = -1

; Specify the client character set.

; If empty or not specified, the client character set will use the configuration of freetds.conf

; Only used when compiling with FreeTDS

;mssql.charset = "ISO-8859-1"

[Assertion]

; Assertion (expr); On by default.

;assert.active = On

; Raises a PHP warning for each failed assertion.

;assert.warning = On

; No bail by default.

;assert.bail = Off

; If the assertion fails, call the user-defined function.

;assert.callback = 0

; Use the current error_reporting() Eval as an expression. If you want error_reporting(0) near eval(), set this to true.

;assert.quiet_eval = 0

[COM]

; The path to the file containing the GUID, IID or file name of the TypeLibs file

;com.typelib_file =

; Allow Distributed-COM calls

;com.allow_dcom = true

; Automatically register the constants of the component typlib located in the com_load() function

;com.autoregister_typelib = true

; Registered constants are case sensitive

;com.autoregister_casesensitive = false

; Display a warning when there are duplicate constant registrations

;com.autoregister_verbose = true

[mbstring]

; Language represented by internal characters.

;mbstring.language = Japanese

; Internal/script encoding.

; Some encodings cannot be used as internal encodings.

; (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 an output buffer as a function

;mbstring.http_output = SJIS

; Turn on automatic encoding conversion according to the settings of mbstring.internal_encoding

; When set to On, input characters are converted to internal encoding.

; Note: Do not use automatic encoding conversion for portable libraries/applications.

;mbstring.encoding_translation = Off

; Automatic encoding detection sequence

; automatically means

;mbstring.detect_order = auto

; Substitution symbol used when characters cannot be converted from one type to another

;mbstring.substitute_character = none;

; Use the mbstring function to overwrite (replace) the single-byte function.

; mail(), ereg(), etc. will be overridden by mb_send_mail(), mb_ereg(), etc.,

; Possible values ​​are 0,1,2,4 or their combination.

; For example, 7 covers all functions.

; 0: No coverage

; 1: Override mail() function

; 2: Override str*() function

; 4: Override ereg*() function

;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]

; Informs the jpeg decoder that libjpeg is warning and trying to create a gd image. This warning will be displayed as a notification

; Default is off

;gd.jpeg_ignore_warning = 0

[exif]

; Exif UNICODE user annotations will be treated as UCS-2BE/UCS-2LE and JIS for JIS processing.

; When mbstring.internal_encoding is set to empty, if mbstring supports it, it will automatically convert to the encoding corresponding to the given encoding setting.

; For decoding settings you can choose between motorola and intel character sequences. Decoding settings cannot be set to 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]

; When calling tidy, the default path points to the tidy configuration file

;tidy.default_config = /usr/local/lib/php/default.tcfg

; Does tidy automatically clear and repair output?

; Warning: Do not use this when you are generating non-html content, such as dynamic images

tidy.clean_output = Off

[soap]

; Turn on or off the WSDL buffering feature.

soap.wsdl_cache_enabled=1

; Set the directory where the SOAP extension stores buffer files.

soap.wsdl_cache_dir="/tmp"

; (time to live) sets the number of seconds after the buffer file is used to replace the original buffer file.

soap.wsdl_cache_ttl=86400

; Local Variables:

; tab-width: 4

; End:

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632680.htmlTechArticleThis article will introduce you to the Chinese configuration instructions of PHP.ini. I hope there are students who need to understand the php.ini configuration file. Do not prevent entering the reference. php.ini Chinese configuration instructions ;;;;;;;;;;; ; Warning ; ;;;;;;...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template