This article mainly introduces about php.ini configuration detailed, has a certain reference value, now share to everyone, the need for friends can refer to
[Php]engine = on---> whether the PHP parsing engine is enabled Short_open_tag = Off---> Whether to use the introduction flag Asp_tags = O FF---> Do not allow ASP class flags precision =---> floating-point data display valid Y2k_compliance = on---> Whether to force open 2000 adaptation (which may cause problems in non-Y2K adapted browsers). output_buffering = 4096---> Output buffer size (bytes). The recommended value is 4096~8192. Zlib.output_compression = Off---> Whether zlib output compression is turned on implicit_flush = off---> requires the PHP output layer 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. Unserialize_callback_func =---> If you need to instantiate an undefined class at the time of the deserialization, you can set the callback function to call serialize_precision =---> float The number of digits in the number of points showing the valid digits, the default 17### #将浮点型和双精度型数据序列化存储时的精度 (number of significant digits). The default value ensures that floating-point data is not lost when it is decoded by the deserialization program. Allow_call_time_pass_reference = off### #是否强迫在函数调用时按引用传递参数 (you will receive a warning each time you use this attribute).; PHP opposes this practice and is no longer supported in future versions because it affects the cleanliness of the code. The encouragement method is to explicitly specify which parameters are passed by reference in the function declaration. We encourage you to turn off this option to ensure that your scripts will still work correctly in future versions of the language. Safe_mode = OFF---> Safe Mode Safe_mode_gid = Offsafe_mode_include_dir =---> in safe mode, the Uid/gid check is skipped when files in the group directory and its subdirectories are included. In other words, if the value here is empty, any files that are not compliant with the Uid/gid are not allowed to be included. The directory set here must already exist in the Include_path directive or be included with the full path. Multiple directories are separated by a colon (win under a semicolon). The specified limit is actually a prefix, not a directory name. Safe_mode_exec_dir =---> Safe mode executable file directory Safe_mode_allowed_env_vars = php_### #在安全模式下, user can only change the prefix list of environment variables (comma Separated). Allowing users to set certain environment variables can lead to potential security vulnerabilities. Note: If this parameter value is NULL, PHP will allow the user to change any environment variable. Safe_mode_protected_env_vars = ld_library_path### #在安全模式下, the user cannot change the list of environment variables (comma delimited). These variables will be protected even if the safe_mode_allowed_env_vars instruction is set to allow. Disable_functions =---> the directive accepts a comma-delimited list of function names to disable a specific function. Disable_classes =---> the directive accepts a comma-delimited list of class names to disable specific classes ZEND.ENABLE_GC = on---> garbage collection mechanism Expos e_php = on---> PHP information is displayed at the head of the Web page max_execution_time =---> Maximum execution seconds per script max_input_time = 60 ---> The maximum limit time for each script to parse request data Memory_limit = 128M---> Memory limit per script error_reporting = e_all & Amp ~e_deprecated---> Error display_errors = off---> Display error (which turns off, switch to log display) Display_startup_errors = off---> Display start error log _errors = on---> Generate error log display Log_errors_max_len = 1024x768---> Set error_log maximum length ignore_repeate D_errors = off---> Do not log duplicate information Ignore_repeated_source = off---> Ignore source when duplicate information is logged when recording is open Report_memleaks = On ---> Report memory leaks, only valid in debug compilation mode track_errors = Off---> Save last Error/warning message (logical value) in $php_errormsg. Forever Do not use this attribute in a production environment: Html_errors Displays the HTML tag where the PHP error is located html_errors = Off---> Whether to turn on static Web page error Variables_order = "GPCs" ---> This directive describes the order in which PHP registers get, POST, Cookie, environment and built-in variables (each using G, P, C, E and S, typically using Egpcs or GPC). The registration uses a left-to-right order, and the new value overrides the old value. Request_order = "GP"---> This directive describes the order in which PHP registers Get,post and cookie variable _request arrays. The registration is left to right, and the new value overwrites the old value. If this directive is not set, the $_request content is used in Variables_order. Please note that the default assigned php.ini file does not contain ' C ' cookies for security reasons. Register_globals = OFF---> Whether to open register global variable register_long_arrays =Off---> Whether to register old forms of input arrays, http_get_vars and related arrays; If you do not use them, it is recommended to turn them off in order to improve performance. REGISTER_ARGC_ARGV = off---> this directive Let PHP confirm that the ARGV&ARGC variable is declared (these variables will contain get information). If you do not use these variables, you should turn off this option in order to improve performance. Auto_globals_jit = on---> When this entry is turned on, the SERVER and ENV variables will be created the first time they are used, not when the script starts (runtime); Volume has not been used in the script, opening this item will add a bit of performance.; In order for this directive to be valid, PHP commands register_globals, register_long_arrays, and register_argc_argv must be closed. Post_max_size = 8M---> PHP can accept the largest POST data size MAGIC_QUOTES_GPC = OFF---> Open magic quotes.magic_quotes_runtime for get/post/cookie data = OFF---> Open magic Quotes for real-time generated data, such as data obtained from SQL, data returned from exec (), and so on. Magic_quotes_sybase = Off---> Using Syb ASE-style Magic quotes (use "to boot ' overrides \ '). Auto_prepend_file =---> Automatically add files before or after any PHP document Auto_append_file =--- ; The two interesting variables are auto_prepend_file and auto_append_file. These variables specify that PHP automatically adds other files to the header or end of the file in any PHP document. This is useful for adding a header or footer to a page generated by PHP, saving you time for adding code to each PHP document. Note, however, that the specified file here will be added to all PHP documents, so these variables must be suitable for a single application (Single-applicatION) servers. The included files are either PHP scripts or plain HTML documents. Embedded PHP code must use standard <?php ...? > tag. Default_mimetype = "text/html"---> PHP built-in defaults to Text/htmldoc_root =---> "root directory" of PHP. Valid only when not empty.; If safe_mode=on, files outside this directory are rejected.; If PHP is compiled without specifying Force_redirect, and is run as CGI on non-IIS servers; You must set this directive (see the Security Section in the manual).; The alternative is to use the cgi.force_redirect directive User_dir =---> Tell php which directory to look for when using/~username to open the script, only valid when not empty. That is, the basic directory name of the PHP file under the user directory, for example: "public_html" ENABLE_DL = Off---> whether the DL () function is allowed. The DL () function is only valid if PHP is installed as an Apache module. Disabling the DL () function is primarily for security reasons because it bypasses the limits of the OPEN_BASEDIR directive. The DL () function is always disabled in safe mode, regardless of how it is set here. File_uploads = on---> whether the upload function is enabled upload_max_filesize = 2M---> max upload file, 2mmax_file_uploads = ---> Maximum simultaneous upload of 20 files Allow_url_fopen = on---> Whether to open remote file Allow_url_include = Off--- ; Allow Include/require remote file Default_socket_timeout =---> Default socket time-out [date]---> Date [filter][iconv][intl][s Qlite][sQlite3][pcre][pdo][pdo_mysql]pdo_mysql.cache_size =---> ped_mysql cache size Pdo_mysql.defaul t_socket=---> Default socket time [phar][syslog]define_syslog_variables = Off---> Whether to define various system log variables [mail function]---> mail features SMTP = localhost---> Local as mail server Smtp_port = 25 message port number default is 25mail.add_ X_header = on---> Whether to turn on maximum Header[sql]sql.safe_mode = OFF---> Whether to use SQL security mode. If you open, the database connection function that specifies the default value will use these default values instead of the supported parameters. For each connection function for a different database, refer to the corresponding manual page for the default values. [odbc]odbc.allow_persistent = on---> Allow or block persistent connections. Odbc.check_persistent = ON---> Check that the connection is available before reuse Odbc.max_persistent = 1---> Maximum number of persistent connections, 1 means there is no limit. odbc.ma X_links = 1--->Maximum number of connections (persistent + non-persistent). -1 means there is no limit. ODBC.DEFAULTLRL = 4096---> Long field processing. Returns the number of bytes of a variable. 0 means skip. Odbc.defau Ltbinmode = 1---> Binary data processing. 0 means skip, 1 follow the actual return, 2 convert to character.; View Odbc_binmode and Odbc_longreadlen documentation for explanations of UODBC.DEFAULTLRL and Uodbc.defaultbinmode [Interbase]---> InterBase database ibase.allow_persistent = 1---> Allow or organize persistent connections. Ibase.max_persistent = 1---> Maximum number of persistent connections, 1 means there is no limit. Ibase.max_links = 1---> Maximum number of connections (persistent + non-persistent). -1 means there is no limit. Ibase.timestampformat = "%y-%m-%d%h:%m:%s"---> Database time record mode Ibase.dateformat = "%y-%m-%d" Ibase.timeformat = "%h:%m:%s" [mysql]mysql.allow_local_infile = on---> Whether to allow local files to connect to database Mysql.allow_persistent = on---> Allow or disallow persistent connections Mysql.cache_size = $---& Gt MySQL Cache size mysql.max_persistent = 1---> Maximum number of persistent connections. -1 means there is no limit. Mysql.max_links = 1---> Maximum number of connections (persistent and non-persistent). -1 for unrestricted Mysql.default_port =---> mysql_connect () default port used, if not set, mysql_connect (); $MYSQL _tcp_port, or mysql-tcp entry under/etc/services (Unix), or in the compilation is defined Mysql_port (in this order); Win32 environment, only mysql_port will be checked. Mysql.default_socket =---> The default socket name for the local MYSQL connection. NULL, use MYSQL built-in value Mysql.default_host =---> mysql_connect () Default host used (invalid in safe mode) Mysql.defaul T_user =---> mysql_connect () Default user name used (invalid in safe mode) Mysql.default_password =---> mysql_connect () default password used (Safe mode is invalid Mysql.connect_timeout =---> Connect super Time, the default is 60smysql.trace_mode = Off[mysqli]mysqli.max_persistent = 1---> Maximum number of persistent connections. 1 means there is no limit. Mysqli.allow_persistent = on---> Allow or deny long connection Mysqli.max_links = 1---> Maximum number of connections. 1 means there is no limit. Mysqli.cache_size =---> Connection cache size Mysqli.default_port = 3306---> Connection Port number # # # #mysqli_connect () The default port number. If not set, mysql_connect () uses $MYSQL _tcp_port; or MySQL in/etc/services -tcp the Mysql_port value (found in this order) that is defined at the entry or compile time.; Win32 will only look for the Mysql_port value. Mysqli.default_socket =---> Default socket name for local MySQL connection. If empty, the MySQL built-in default value is used. Mysqli.default_host = Default host value for---> Mysqli_connect () (does not take effect in safe mode) Mys Qli.default_user = Default User value for---> Mysqli_connect () (does not take effect in safe mode). MYSQLI.DEFAULT_PW =---&G T The default password value for Mysqli_connect () (does not take effect in safe mode).; Note Saving passwords in this file is generally a bad * doctrine.; * Any user who uses PHP can perform echo get_cfg_var ("Mysqli.default_password"); And get to this password! And, of course, anyone who has read access to this file can get this password. Mysqli.reconnect = Off---> Allow or block persistent connections [Mysqlnd]mysqlnd.collect_statistics = Onmysqlnd.collect_memory_statistics = Off[oci8][postgresql]pgsql.allow_persistent = on---> Allow or block persistent connections. Pgsql.auto_reset_persistent = OFF # # # #总是在 Pg_pconnect () detects a disconnected persistent connection.; The automatic reset feature can cause a little overhead. pgsql.max_persistent = 1---> Maximum number of persistent connections. 1 means there is no limit. Pgsql.max_links = 1---> Maximum number of connections (persistent + non-persistent). -1 means there is no limit to Pgsql.ignore_notice = 0---> Whether to ignore PostgreSQL backend advertisement messages.; A little overhead is required to advertise the message record. Pgsql.log_notice = 0---> Whether the PostgreSQL backend notification message is logged.; The module cannot log the advertisement message unless pgsql.ignore_notice=0. [sybase-ct]sybct.allow_persistent = on---> Allow or block persistent connections. Sybct.max_persistent = 1---> The maximum number of persistent connections. 1 means there is no limit. Sybct.max_links = 1---> Maximum number of connections (persistent + non-persistent). 1 means there is no limit. Sybct.min_server_severity = Ten---> shows the minimum severity of errors. sybct.min_client_severity = Ten---> Displays the message minimum severity [bcmath]bcmath.scale = 0---> 100 binary number for all Bcmath functionsNumber of numbers [browscap][session] Session.save_handler = Files---> control method for saving/retrieving data Session.use_cookies = 1 ---> whether to use Cookiessession.use_only_cookies = 1---> This option allows the administrator to protect those that are transmitted in the URL Sessio The user of n ID is exempt from attack; default is 0.session.name = PHPSESSID---> Session name (also as the name of the cookie Session.auto_start = 0 ---> Initialize sessionsession.cookie_lifetime = 0---> The number of seconds the cookie is alive at the start of the request, or 0 if it is Until browser restarts Session.cookie_path =/---> Valid path for cookies Session.cookie_domain =---> The valid domain name of the cookie session.cookie_httponly =---> Whether the HTTPONLY flag is added to the cookie and the cookie cannot be added to the browser's scripting language (for example JavaScript) access. Session.serialize_handler = PHP---> Processor for serializing data. PHP is the standard PHP serializer. session.gc_probability = 1---> defines the scale at which the garbage collection process starts at each session initialization.; The proportions are derived from gc_probability/gc_pisor; For example. 1/100 means there is a 1% chance to start the ' garbage collection ' process on each request. Session.gc_pisor = 1000session.gc_maxlifetime = 1440---> After the number of seconds referred to here, the saved data is considered ' fragmented (garbage) ' and cleaned up by the GC process. session.bug_compat_42 = Off---> PHP 4.2 and earlier have an undisclosed feature/bug, this feature allows you to initialize a session variable globally, even if register_g Lobals has been closed.; If this feature is used, PHP 4.3 and earlier versions will warn you.; You can turn off this attribute and isolate this warning. At this point, if bug_compat_42 is turned on, the warning is only displayed. Session.bug_compat_warn = Offsession.referer_check =---> Check HT TP referer to prevent external URLs with IDs.; Http_referer must contain this field from the session to be considered legitimate. Session.entropy_length = 0---> How many bytes are read from this file Session.cache_li miter = NoCache---> is set to {nocache,private,public,} to determine the type of HTTP buffer, and leaving it blank prevents the anti-caching header from being sent. Session.cache_expire =---> Documents expire after n minutes. Session.use_trans_sid = 0---> trans SID support Default off.; Using the trans Sid may give your users a security risk.; Care must be taken to use this item. -The user may send a URL containing a valid session ID to others by email/irc/other means.; -URLs containing valid session IDs may be stored on computers that are easily accessible to public access.; -The user may access your site through a URL that contains the same session ID in the browser history or in the Favorites folder. Session.hash_function =0---> select hash method; 0:md5 (1:sha-1) Session.hash_bits_per_character = 5---> When converting binary hash data into readable form, there are several characters each word. 4 bits:0-9, a-f; 5 bits:0-9, A-v; 6 bits:0-9, A-Z, a-Z, "-", "," url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" url Rewriter will find the URL within a defined set of HTML tags.; Form/fieldset is a special character; If you include them here, Rewriter will add a hidden <input> field that contains the information, otherwise it is appended with the information in the URL.; If you want to comply with XHTML, delete the entry for the form.; Note that all legitimate entrances require a "=" symbol, even without any value. [mssql]mssql.allow_persistent = on---> Allow or block persistent connection Mssql.max_persistent = 1---> The maximum number of persistent connections. 1 means there is no limit. Mssql.max_links = 1---> Maximum number of connections (persistent + non-persistent). 1 means there is no limit. Mssql.min_error_severity = Ten---> shows the minimum severity of errors. mssql.min_message_severity = Ten---> Displays the message minimum severity Mssql.compatability_mode = Off---> PHP 3.0 compatibility Mode for older versions. Mssql.secure_connection = OFF---> Use NT Authentication when connecting to the serverertion][com][mbstring][gd][exif][tidy]### #当调用tidy时, by default, the path to the Tidy configuration file Tidy automatically clean and repair the output?; Warning: Do not use this item when you produce non-HTML content, such as Tidy.clean_output = off---> Clear function when generating a dynamic picture, in this article the off state [Soap]soap.wsdl_ca Che_enabled=1---> Turns on or off the WSDL buffering feature. soap.wsdl_cache_dir= "/tmp"---> Set SOAP extension storage Buffer file directory soap.wsdl_cache_ttl=86400---> (Time-to-live) sets the number of seconds the buffer file is used to replace the original buffer file Soap.wsdl_cache_limit = 5---& Gt Minimum cache [sysvshm][ldap]ldap.max_links = -1[mcrypt][dba][xsl]