PHP.ini

zhaozj2021-02-08  203

[Php]

;;;;;;;;;;;;;;;;;; about this file ;;;;;;;;;;;;

This file controls many views of PHP. In order to let PHP read this file, it must be named; 'php.ini'. PHP will look for this file in these places: the current working directory; environment variable phprc; indicated path; the path specified when compiling. Under Windows, the path to compile is a Windows installation directory. In command line mode, the PHP.INI's lookup path can be replaced with the -c parameter.

The syntax of the file is very simple. Blank characters and semicolons ';' starting rows are simply ignored (just like you may; guessing). The chapter title (for example: [foo]) is also simply ignored, even if they may; there is a meaning. ; Indicates that the following syntax is specified: indicating the identifier = value; Directive = value; Indicates that the identifier is * uppercase sensitive * - foo = BAR is different from foo = bar. The value can be a string, a number, a PHP constant (such as: e_all or m_pi), in constant; one (ON, OFF, TRUE, FALSE, YES, NO AND NONE), or an expression (, Such as: e_all & ~ e_notice), or the string ("foo") enclosed with quotation marks ("foo"). ;; The expression of the INI file is limited to the position operator and parentheses. (Bitwise OR; & Bitwise and; ~ bitwise not ;! Boolean NOT ;; Boolean flag can be placed in a state of 1, ON, TRUE or YES. They can be placed in the relationship with 0, OFF, FALSE OR NO. An empty string can be used in the equal sign, or use none keywords: ;; foo =; foo = none; foo = none; set FOO to empty string; foo = "none"; set the foo to string 'none' ;; if you use constants in your value setting, these constants belong to the dynamically transferred extension library (not PHP extension, it is; Zend extension), you can only After transferring these extended lines * * Use these constants. All values ​​set in the php.ini-dist file are the same as the built-in default (this is, if pHP.ini; is not used or you delete these rows, the default value is the same).

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

Engine = ON; makes PHP Scripting Language Engine (PHP Scripting Language Engine) is valid under Apache. Short_open_tag = ON; Allow tags will be identified. ASP_TAGS = OFF; allows asp-style <%%> tagsprecision = 14; valid bits when the floating point type

Y2K_compliance = OFF; whether to open 2000 adaptation (may result in problems in a browser that is not Y2K adaptation)

Output_buffering = OFF; Output Cache Allows you to send a Header (including cookies) after outputting the text; its cost is a little speed slower. You can use the output cache to turn on the output cache when running,; or here will be set to ON to make the output cache of all files open. Implicit_flush = OFF; Force Flush (refresh) Let PHP tell the output layer to automatically refresh their own data after each output block. This is equivalent to calling a flush () function after each print () or echo () call and each HTML block. Opening this setting causes a serious runtime conflict, it is recommended to open only during the Debug process.

ALLOW_CALL_TIME_PASS_REFERENCE = ON; Whether the forced function is transferred according to the reference to transfer parameters. This approach is protest, and it may not be supported in the future version of PHP / Zend. The method of encouragement specifies which parameters is transmitted by reference to the function declaration. You are encouraged to try to close this option and confirm that your script will still work normally to ensure that in the future version of the language; they still work. (You will get a warning every time you use this feature, and the parameters will be valued instead of reference; delivery).

; SAFE MODE security mode SAFE_MODE = OFFSAFE_MODE_EXEC_DIR = SAFE_MODE_ALLOWED_ENV_VARS = PHP_;? Setting CERTAIN ENVIRONMENT VARIABLES;? May Beh Potential Security Breach .; This indicator contains a comma-separated prefix list. In the security mode, the user can only replace; the value of the environment variable at the beginning of the prefix listed here. By default, the user will only set the environment variable starting with PHP_ (eg pHP_foo = BAR). ; Note: If this indication is empty, the PHP will let the user change any environment variable!

SAFE_MODE_PROTECTED_ENV_VARS = ld_library_path; This indicator contains a comma-separated environment variable list, which will not change with Putenv (). These variables are protected even in the case where SAFE_MODE_ALOWED_ENV_VARS is set to allow.

Disable_functions =; This indication allows you to fail for a particular function for security. It accepts a list of functions separated by commas. This indication * is not affected by * security mode.

The color of the syntax highlight mode. As long as you can be able to work with anything accepted by .

Highlight.string = # dd0000highlight.comment = # ff8000Highlight.keyword = # 007700Highlight.bg = # fffHighlight.default = # 0000bbhighlight.html = # 000000

MISC miscellaneous eXPOSE_PHP = OFF; determine if the PHP indicates that it is mounted on the server (for example: adding on it-php- to the web service; sent on the signal). (I personally comment, when there is a Power-by HEADER, turn this off.); It does not have a security threat, but it makes it possible to check if PHP is installed on your server.

;;;;;;;;;; resource limit, ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

MAX_EXECUTION_TIME = 30; Maximum execution time of each script Memory_Limit = 8388608; a script is the maximum amount of memory (here 8MB) ;;;;;;;;;;;;;;;; ;;;;;;;;;;;;; error handling and logging; error control and registration ;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;; Error report is bitbusted. Or add a number to get the desired error report level. ; E_ALL - All errors and warnings; E_ERROR - Fatness running error; e_warning - runtime warning (non-poor misalignment); E_PARSE - Compile error; E_NOTICE - Running (these often is your code) BUG is caused; it may also be caused by intentional behavior. (such as: automatically initializing the unin-initialized variable to one; use an uninitialized variable in the facts of the empty string)

E_CORE_ERROR - A fatal error occurred during initialization during PHP; E_CORE_WARNING - Warning (Non-Derived Wrong) during initialization during PHP startup; E_Compile_ERROR - compile life; E_Compile_Warning - Compile time warning (Non-fatal Sex error); E_USER_ERROR - the error message generated by the user; E_USER_WARNING - the warning message generated by the user; E_USER_NOTICE - the user generated alert message; example: ire_reporting = e_all & ~ e_notice; display all errors, except for reminding; error_reporting = e_compile_ERROR | E_ERROR | E_CORE_ERROR; only error error_reporting = e_all & ~ e_notice; display all errors, except for display_errors = ON; display error message (as part of the output); on the final released Web site, it is strongly recommended that you turn off this Features, and use; error logs are replaced (see below). In the final released Web site continues to make Display_ERRORS valid; expose some information about security, such as file paths on your web service,; your database planning or other information.

Log_ERRORS = OFF; record errors in the log file (the server specified by the server, STDERR standard error output, or error_log)); as in the above description, it is highly recommended that you have a logging error in the finally released Web site; replace Direct error output.

TRACK_ERRORS = OFF; save the most recent error / warning message in variable $ php_errormsg (irean); error_prepend_string = ""; string output before the error message; error_Append_string = ""; error The string output after the information; error_log = filename; record error logs in the specified file; error_log = syslog; Record error log in system log Syslog (Event log under NT, WINDOWS 95 is invalid) WARN_PLUS_OVERLOADING = OFF; Warning when used for strings ;;;;;;;;;;;;;;;; data HANDLING ;;;;;;;;;;;;;;;; variables_order = "eGpcs"; This indication describes PHP recording; GET, POST, COOKIE, ENVIRONMENT AND BUILT-IN the order of these variables. ((Represented by G, P, C, E & S, usually referenced by EGPCS or GPC). Press from left to right records, the new value replaces the old value.

Register_globals = on; whether these EGPCS variables are registered as global variables. If you don't want user data, you may want to close it. This is even more meaningful to TRACK_VARS - so that you can pass; $ http _ _ vars [] array access all GPC variables.

Register_argc_argv = ON; This indication tells PHP to declare Argv and Argc variables; (Note: here Argv is array, ARGC is variable); (which contains data from the GET method). If you don't want to use these variables, you should turn off it to improve performance.

TRACK_VARS = ON; makes $ http _ * _ vars [] array valid, here * is used in use; ENV, Post, Get, Cookie or Server Replace

GPC_ORDER = "GPC"; this indication is opposed. Use Variables_Order instead.

Magic quotesmagic_quotes_GPC = ON; use magic references in the input GET / POST / COOKIE data; (in this way, huh, the so-called MAGIC quotes should refer to control characters with escape values ​​in the reference ", such as / '. ...) Magic_quotes_Runtime = Off; uses the data generated at runtime Use the magic reference, for example: data obtained with the SQL query, with the data obtained with the exec () function, etc. Magic_quotes_sybase = off; use the Sybase form in the form of magic reference ( Use '' to get out 'without us /')

Automatically add file auto_prepend_file = auto_prepend_file = auto_prepend_file = auto_prepend_file =

Like 4.04B4, PHP is always encoded by default in the "Content-Type:" header. To make the output character set, as long as the setting is empty. PHP's built-in default value is text / htmldefault_mimetype = "text / html"; default_charset = "ISO-8859-1" ;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;; include_path =; incrude path setting, UNIX: "/ path1: / path2" Windows: "/ Path1; / path2" DOC_ROOT =; the root path of the PHP page, only in non-empty time_dir =; inform PHP, in this directory when using / ~ username to open the script, it is looking for, only in non-empty time; UPLOAD_TMP_DIR = The temporary directory (using the system default when not specified) UPLOAD_MAX_FILESIZE = 2097152; file upload is limited to 2 meg extension_dir = c: / pHP /; stored expansion library (module) Directory enable_dl = ON; whether DL () is effective. ; DL () function * can not * work well on multi-threaded server,, for example, IIS or Zeus, and it is disabled by it

;;;;;;;;;;;;;;;;;;;;; dynamic expansion ;; Dynamic EXTENSIONS ;;;;;;;;;;;;;;; ;; If you want an extension library to load, use the following syntax:; extension = modulename.extension; for example, in Windows,; extension = msql.dll; OR under Unix,; extension = msql.so; This should only be the name of the module, and does not require directory information. The location of the specified expansion library is indicated by the above extension_dir.

; Windows extension; extension = php_nsmail.dllextension = php_calendar.dll; extension = php_dbase.dll; extension = php_filepro.dllextension = php_gd.dll; extension = php_dbm.dll; extension = php_mssql.dll; extension = php_zlib.dll; extension = PHP_FILEPRO.DLL; extension = php_imap4r2.dll; extension = php_ldap.dll; extension = php_crypt.dll; extension = php_msql2.dll; extension = php_odbc.dll; Note, MySQL support is now built, so it is not necessary Its DLL

;;;;;;;;;;;;;;;;;;; module; etc o settings ;;;;;;;;;;;;;;;;;;;;;

[Syslog] define_syslog_variables = OFF; whether various system log variables are defined; such as $ log_pid, $ log_cron, and so on. It is a good idea to turn off it is an improvement. When running, you can call the function define_syslog_variables () to define these variables [Mail function] SMTP = localhost; only for Win32 system sendmail_from = me@localhost.com; only for Win32 system; sendmail_path =; for UNIX Also support parameters (default is 'sendmail -t -i')

[Debugger] Debugger.host = localhostdebugger.port = 7869debugger.enabled = FALSE

[Logging] These configurations indicate logging mechanisms for example. Reading Examples / Readme.Logging to get more explanation; logging.Method = DB; logging.directory = / path / to / log / directory

[SQL] SQL.SAFE_MODE = OFF

[ODBC]; uodbc.default_db = Not yet implemented; uodbc.default_user = Not yet implemented; uodbc.default_pw = Not yet implementeduodbc.allow_persistent = On; allow or prevent persistent connections uodbc.check_persistent = On; check connections before reuse in further UODBC.MAX_PERSISTENT = -1; the maximum number of persistent connections. -1 represents unlimited uodbc.max_links = -1; the maximum number of connections (lasting and non-persistent). -1 represents unlimited uodbc.defaultlrl = 4096; controlling the field of the long type. Returns the number of bytes of variables, 0 represents pass (?) 0 means passthruuodbc.defaultbinmode = 1; control binary data. 0 represents ????? Handling of binary data. 0 means passthru, 1 Return AS, 2 Convert to char; see the documentation about ODBC_BINMODE and ODBC_LONGREADLEN to obtain Uodbc.defaultlrl and u 4bc.defaultbinmode explanation.

[Mysql] mysql.allow_persistent = ON; Allow or prohibit long-lasting connection mysql.max_persistent = -1; the maximum number of persistent connections. -1 represents no limit mysql.max_links = -1; the maximum number of connections (lasting and non-persistent). -1 represents unlimited mysql.default_port =; mysql_connect () uses the default port, if it is not set, mysql_connect (); use variable $ mysql_tcp_port, or mysql-TCP entry under / etc / services,; or In compilation is the defined mysql_port (in such order); Win32 environment will only check mysql_port. MySQL.DEFAULT_SOCKET =; the default socket name for local MySQL connections. When it is empty, use the MySQL built-worth mysql.default_host =; mysql_connect () The host (secure mode is invalid) mysql.default_user =; mysql_connect () default username (safe mode is invalid) mysql.default_password =; MySQL_Connect () The password used by default (invalid in security mode); note that the password in this file is usually a * bad * idea; * Any * You can use the user who can use PHP access; 'Echo cfg_get_parsword ") 'To show that password! & Nb

转载请注明原文地址:https://www.9cbs.com/read-1095.html

New Post(0)