Home > Backend Development > PHP Tutorial > Strongly recommended: php.ini Chinese version (2)_PHP tutorial

Strongly recommended: php.ini Chinese version (2)_PHP tutorial

WBOY
Release: 2016-07-21 16:08:30
Original
903 people have browsed it




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 was objected to. Use variables_order instead.

; Magic quotes
magic_quotes_gpc = On; Use magic quotes in the input GET/POST/Cookie data
; (The original text is like this, haha, the so-called magic quotes should refer to using escape characters Added to reference control characters, such as '....)
magic_quotes_runtime= Off; Use magic quotes for data generated during runtime,
; For example: use exec() to query data obtained by SQL The data obtained by the function, etc.
magic_quotes_sybase = Off; Use Sybase-style magic quotes (use 'extract' instead of ')

; Automatically add files before and after the PHP document
auto_prepend_file =
auto_append_file =

; Like 4.04b4, PHP always outputs the encoding of a character in the "Content-type:" header by default.
; 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 with /~username, only when it is not empty Valid
; 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 Meg by default
extension_dir = c: php; Directory where loadable extension libraries (modules) are stored
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 HTTP uploaded files (if not specified, the system default is used)
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 required. inside.
; Use the extension_dir directive above to specify the location of the extension library.


;Windows Extensions
;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 , therefore, there is no need to use its dll



; Module Settings; 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 system
;sendmail_path = ;Only for unix, also supports parameters (the 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:jdkjrebinhotspotjvm.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 if the connection is still available before reusing
uodbc.max_persistent = -1 ; Persistent The maximum number of connections. -1 means unlimited
uodbc.max_links = -1 ; Maximum number of connections (persistent and non-persistent). -1 represents unlimited
uodbc.defaultlrl = 4096; Controls LONG type fields. Returns the number of bytes of the variable, 0 means pass (?) 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 an explanation 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 that is defined during compilation (in this order)
; Win32 environment, will only check MYSQL_PORT.
mysql.default_socket = ; The default socket name used for local MySql connections. If empty, use the MYSQL built-in value

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 (safe)
mysql.default_password = ; The password used by mysql_connect() by default (invalid in safe mode)
; Note that saving passwords in this file is usually a *bad* idea
; *Any *Users 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 means 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 means 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 ; The 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; The minimum severity of the displayed error
sybase.min_message_severity = 10; The minimum severity of the displayed message Minimum importance
sybase.compatability_mode = Off ; Mode compatible with older versions of PHP 3.0. If turned on, this will cause PHP to automatically
; assign them the Sybase type based on 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 means unlimited
sybct.min_server_severity = 10 ; Minimum severity of errors shown
sybct.min_client_severity = 10 ; Minimum severity of messages shown

[bcmath]
bcmath .scale = 0 ; number of decimal digits for all bcmath functions

[browscap]
;browscap = extra/browscap.ini
browscap = C:WINSYSTEMinetsrvbrowscap.ini
[Informix]
ifx.default_host = ; The host used by ifx_connect() by default (invalid in safe mode)
ifx.default_user = ; The user name used by ifx_connect() by default ( Invalid in safe mode)
ifx.default_password = ; Password used by ifx_connect() by default (invalid in safe mode)
ifx.allow_persistent = On ; Allow or disable persistent connections
ifx.max_persistent = -1 ; The 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 Returns the contents of a 'byte blob' field rather than its id
ifx.charasvarchar = 0 ; Tracks whitespace stripped from a fixed-length character column.
; May work for Informix SE users.
ifx.blobinfile = 0 ; If turned on, the contents of text and byte blobs are exported to a file
; rather than saved to memory.
ifx.nullformat = 0 ; NULL (empty) is returned as a null field, unless set to 1 here.
; In this case (1), NULL is returned as the string NULL.

[Session]
session.save_handler = files; Control method for saving/retrieving data
session.save_path = C:wintemp; Passed to the controller when save_handler is set to a file Parameters,
3

; This is the path where the data file will be saved.
session.use_cookies = 1; Whether to use cookies
session.name = PHPSESSID
; The name of the session used in cookies
session.auto_start = 0; Initialize the session when the request starts
session.cookie_lifetime = 0 ; It is the cookie storage time in seconds,
; or when it is 0, until the browser is restarted
session.cookie_path = / ; The effective path of the cookie
session.cookie_domain = ; Valid domain of cookie
session.serialize_handler = php ; Controller used to connect data
; php is the standard controller of PHP.
session.gc_probability = 1 ; Probability in percent that the 'garbage collection' process
; will be started each time the session is initialized.
session.gc_maxlifetime = 1440 ; After the number of seconds indicated by the number here, the saved data will be considered
; 'garbage' and cleaned up by the gc process.
session.referer_check = ; Check HTTP referrers to invalidate additional ids included in URLs
session.entropy_length = 0 ; How many bytes to read from the file
session.entropy_file = ; Specify here to create a session id
; session.entropy_length = 16
; session.entropy_file = /dev/urandom
session.cache_limiter = nocache; Set to {nocache, private, public} to determine HTTP's
; cache Problem
session.cache_expire = 180; document expires after n minutes
session.use_trans_sid = 1; use transitional sid support if compiled with it enabled
; --enable-trans-sid
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]
;extension=php_mssql.dll
mssql.allow_persistent = On ; Allow or disable persistent connections
mssql.max_persistent = -1 ; The maximum number of persistent connections. -1 represents unlimited
mssql.max_links = -1 ; Maximum number of connections (persistent and non-persistent). -1 means unlimited
mssql.min_error_severity = 10 ; Minimum severity of errors shown
mssql.min_message_severity = 10 ; Minimum severity of messages shown
mssql.compatability_mode = Off ; Same as older versions of PHP 3.0 compatible mode.

[Assertion]
; ? ? ? ? ?
;assert.active = On; ? assert(expr); active by default
;assert.warning = On; issue a PHP warning for each failed assertion.
;assert.bail = Off; don't bail out by default.
;assert .callback = 0 ; user-function to be called if an assertion fails.
;assert.quiet_eval = 0 ; eval the expression with current error_reporting(). set to true if you want error_reporting(0) around the eval() .

[Ingres II]
ii.allow_persistent = On ; Allow or disable persistent connections
ii.max_persistent = -1 ; Maximum number of persistent connections. -1 means unlimited
ii.max_links = -1 ; Maximum number of connections (persistent and non-persistent). -1 represents unlimited
ii.default_database = ; default database (format : [node_id::]dbname[/srv_class]
ii.default_user = ; default user
ii.default_password = ; default password

[Verisign Payflow Pro]
pfpro.defaulthost = "test.signio.com" ; Default Signio server
pfpro.defaultport = 443 ; Default port for connection
pfpro.defaulttimeout = 30 ; Default timeout in seconds

; pfpro.proxyaddress = ; Default proxy IP address (if needed)
; pfpro.proxyport = ; Default proxy port
; pfpro.proxylogon = ; Default proxy login (logon username)
; pfpro.proxypassword = ; Default proxy password

[Sockets]
sockets.use_system_read = On ; Use system read() Function replacement php_read() encapsulation
; Local Variables: (local variable)
; tab-width: 4
; End:

(Source: Riqioniao)

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/314762.htmlTechArticletrack_vars = On; Make the $HTTP_*_VARS[] array valid, here * is used when using; ENV, POST , GET, COOKIE or SERVER replace post_max_size = 8M; The maximum size of POST data that PHP will accept. gpc_...
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