Home >Backend Development >PHP Tutorial >Chinese php.ini_PHP tutorial
;;;;;;;;;;;;;;;;;; ; Data Handling ; ;;;;;;;;;;;;;;;;;; variables_order = "EGPCS" ; This directive describes PHP Log; 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). ; Records from left to right, with new values replacing old values. register_globals = On ; Whether to register these EGPCS variables as global variables. ; You may want to turn this off if you don't want user data to be cluttered globally. ; This makes more sense in conjunction with track_vars - this way you can access all GPC variables via the ; $HTTP_*_VARS[] array. register_argc_argv = On; This instruction tells PHP whether to declare the argv and argc variables; (Note: here argv is an array and argc is the number of variables); (which contains the data passed by the GET method). ; If you don't want to use these variables, you should turn them off to improve performance. track_vars = On ; Make the $HTTP_*_VARS[] array valid, where * is replaced with ; ENV, POST, GET, COOKIE or SERVER when used. post_max_size = 8M ; The maximum size of POST data that PHP will accept. gpc_order = "GPC" ; This directive is objected. Use variables_order instead. ; Magic quotes magic_quotes_gpc = On ; Use magic quotes in the input GET/POST/Cookie data; (This is the original text, haha, the so-called magic quotes should refer to using escape characters to add reference control characters, such as... ..) magic_quotes_runtime= Off ; Use magic quotes for data generated at runtime, ; For example: data obtained by SQL query, data obtained by the exec() function, etc. magic_quotes_sybase = Off ; Use magic quotes in the form of Sybase (using out) ; Automatically add files before and after PHP documents auto_prepend_file = auto_append_file = ; Like 4.04b4, PHP by default always outputs the encoding of one character in the "Content-type:" header. ; Disables the output character set as long as it is set to empty. ; PHP's built-in default is text/html default_mimetype = "text/html" ;default_charset = "iso-8859-1" ;;;;;;;;;;;;;;;;;;;;;;; ;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;;;; include_path = ; include path settings, UNIX: "/path1:/path2" Windows : "path1;path2" doc_root = ; The root path of the php page, only valid when it is not empty user_dir = ; Tell php which directory to look for when opening the script using /~username, only valid when it is not empty; upload_tmp_dir = ; Temporary directory to store files uploaded using HTTP protocol (use the system default if not specified) upload_max_filesize = 2097152; File upload is limited to 2 by default Meg extension_dir = c:php; Directory to store loadable extension libraries (modules) enable_dl = On ; Whether to enable dl(). ; The dl() function *doesn't* work well on multi-threaded servers, ; such as IIS or Zeus, and is disabled by default on them ;;;;;;;;;;;;;;;;; ; File Uploads ; ;;;;;;;;;;;;;;;;; file_uploads = On ; Whether to allow HTTP file upload; upload_tmp_dir = ; Temporary directory for files uploaded by HTTP (if not specified, use the system default) upload_max_filesize = 2M ; Maximum allowed size of uploaded files; Fopen wrappers ; ;;;;;;;;;;;;;;;;;;; allow_url_fopen = On ; Whether to allow URLs to be treated as http:.. or files as ftp:... ;;;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions; ;;;;;;;;;;;;;;;; ;;;;;;; ; If you want an extension library to be loaded automatically, use the following syntax: ; extension=modulename.extension ; For example, on Windows, ; extension=msql.dll ; or on UNIX, ; extension= msql.so ; Note that this should only be the name of the module, no directory information is needed in it. ; Use the extension_dir directive above to specify the location of the extension library. ;Windows extension; extension=php_nsmail.dll extension=php_calendar.dll ;extension=php_dbase.dll ;extension=php_filepro.dll extension=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 that MySQL support is now built-in, so it is not Need to use its dll;;;;;;;;;;;;;;;;;;;;; Module Settings; ;;;;;;;;;;;;;;;;;;; ;; [Syslog] define_syslog_variables = Off ; Whether to define various system log variables; such as: $LOG_PID, $LOG_CRON, etc. ; Turning it off is a good idea to increase efficiency. ; When running, you can call the function define_syslog_variables() to define these variables [mail function] SMTP = localhost ; only for win32 systems sendmail_from = me@localhost.com ; only for win32 systems; sendmail_path = ; only for unix , can also support parameters (default is sendmail -t -i) [Debugger] debugger.host = localhost debugger.port = 7869 debugger.enabled = False [Logging] ; These configurations indicate the logging mechanism used for the example.; See examples/README.logging for more explanation; logging.method = db ; logging.directory = /path/to/log/directory [Java] ; java.class.path = .php_java.jar ; java.home = c:jdk ;java.library = c:jdkjre inhotspotjvm.dll ;java.library.path = . [SQL] sql.safe_mode = Off [ODBC] ;uodbc.default_db = Not yet implemented ;uodbc.default_user = Not yet implemented ;uodbc.default_pw = Not yet implemented uodbc.allow_persistent = On ; Allow or disable persistent connections uodbc.check_persistent = On ; Check whether the connection is still available before reusing uodbc.max_persistent = -1 ; The maximum number of persistent connections. -1 means unlimited uodbc.max_links = -1 ; Maximum number of connections (persistent and non-persistent). -1 represents unlimited uodbc.defaultlrl = 4096; Controls fields of LONG type. Returns the number of bytes in the variable, 0 means passthru (?) 0 means passthru uodbc.defaultbinmode = 1; control binary data. 0 represents Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char; See the documentation for odbc_binmode and odbc_longreadlen for explanations of uodbc.defaultlrl and uodbc.defaultbinmode. [MySQL] mysql.allow_persistent = On ; Allow or disable persistent connections mysql.max_persistent = -1 ; The maximum number of persistent connections. -1 represents unlimited mysql.max_links = -1; Maximum number of connections (persistent and non-persistent). -1 represents unlimited mysql.default_port = ; The default port used by mysql_connect(). If not set, mysql_connect() ; will use the variable $MYSQL_TCP_PORT, or the mysql-tcp entry under /etc/services (unix), ; or MYSQL_PORT is defined during compilation (in this order); in Win32 environment, only MYSQL_PORT will be checked. mysql.default_socket = ; The default socket name used for local MySql connections. If empty, use the built-in value of MYSQL mysql.default_host = ; The host used by mysql_connect() by default (invalid in safe mode) mysql.default_user = ; The user name used by mysql_connect() by default (invalid in safe mode) mysql.default_password = ; The password used by mysql_connect() by default (invalid in safe mode); note that saving passwords in this file is generally a *bad* idea; *any* user with PHP access can run; echo cfg_get_var("mysql.default_password" ) to display that password! ; And of course, any user with read rights to the file can also see that password. [mSQL] msql.allow_persistent = On ; Allow or disable persistent connections msql.max_persistent = -1 ; Maximum number of persistent connections. -1 represents unlimited msql.max_links = -1 ; Maximum number of connections (persistent and non-persistent). -1 represents unlimited [PostgresSQL] pgsql.allow_persistent = On ; Allow or prohibit persistent connections pgsql.max_persistent = -1 ; The maximum number of persistent connections. -1 represents unlimited pgsql.max_links = -1 ; Maximum number of connections (persistent and non-persistent). -1 represents unlimited [Sybase] sybase.allow_persistent = On; Allow or prohibit persistent connections sybase.max_persistent = -1; Maximum number of persistent connections. -1 represents unlimited sybase.max_links = -1; Maximum number of connections (persistent and non-persistent). -1 represents unlimited; sybase.interface_file = "/usr/sybase/interfaces" sybase.min_error_severity = 10 ; Minimum severity of errors displayed sybase.min_message_severity = 10 ; Minimum severity of messages displayed sybase.compatability_mode = Off ; Compatible mode with older versions of PHP 3.0. If turned on, this will cause PHP to automatically ; assign them the Sybase type according to the results, rather than treating them all as strings. ; This compatibility mode won't last forever, ; so make the necessary changes to your code, ; and turn it off. [Sybase-CT] sybct.allow_persistent = On ; Allow or disable persistent connections sybct.max_persistent = -1 ; Maximum number of persistent connections. -1 means unlimited sybct.max_links = -1 ; Maximum number of connections (persistent and non-persistent). -1 represents unlimited sybct.min_server_severity = 10 ; Minimum severity of errors displayed sybct.min_client_severity = 10 ; Minimum severity of messages displayed [bcmath] bcmath.scale = 0 ; 10-decimal number used for all bcmath functions number of decimal digits for all bcmath functions [browscap] ;browscap = extra/browscap.ini browscap = C:WINSYSTEMinetsrv rowscap.ini [Informix] ifx.default_host = ; ifx_connect() The default host used (in safe mode Invalid) ifx.default_user = ; The default user name used by ifx_connect() (invalid in safe mode) ifx.default_password = ; The default password used by ifx_connect() (invalid in safe mode) ifx.allow_persistent = On ; Allow or disable persistent connections ifx.max_persistent = -1 ; Maximum number of persistent connections. -1 means unlimited ifx.max_links = -1 ; Maximum number of connections (persistent and non-persistent). -1 represents unlimited ifx.textasvarchar = 0; If turned on, the select status code returns the content of a 'text blob' field instead of its id ifx.byteasvarchar = 0; If turned on, the select status code returns a 'byte blob' The content of the field, not its id ifx.charasvarchar = 0 ; Track whitespace stripped from a fixed-length character column. ; Might be valid for Informix SE users. ifx.blobinfile = 0 ; if on, text and byte blobs