Highly recommended: php.ini Chinese version (2) _php Foundation

Source: Internet
Author: User



Track_vars = on; Make the $http_*_vars[] array valid, here * in use
; ENV, POST, GET, COOKIE or server replacement
Post_max_size = 8M; The maximum size of post data that PHP will accept.


Gpc_order = "GPC"; The instruction was objected to. Replace with Variables_order.

; Magic Quotes
MAGIC_QUOTES_GPC = on; Using magic references in the input Get/post/cookie data
; (The original text is like this, hehe, the so-called magic quotes should mean to use the escape alphanumeric in the reference control character, such as ' .... )
Magic_quotes_runtime= off; Use magic references to data generated at run time,
; For example: data obtained with SQL queries, data obtained using the EXEC () function, and so on
Magic_quotes_sybase = off; Use Sybase form of magic Reference (use ' out ' instead of ')

; Automatically add files before and after PHP documents
Auto_prepend_file =
Auto_append_file =

; Like 4.04b4, PHP always prints the encoding of a character in the "Content-type:" header by default.
; Invalidates the output character set, as long as it is set to null.
; PHP's built-in default value is Text/html
Default_mimetype = "Text/html"
;d efault_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, valid only when not empty
User_dir =; Tell PHP which directory to go to when you open the script using/~username, which is valid only when not empty
; upload_tmp_dir =; A temporary directory that holds files uploaded with the HTTP protocol (using system defaults when unspecified)
Upload_max_filesize = 2097152; File upload is limited to 2 Meg by default
Extension_dir = c:\php\; A directory that holds loadable Extensions (modules)
ENABLE_DL = on; Whether the DL () is valid.
; DL () function on multi-threaded server * not working well,
; For example, IIS or Zeus, and on it, defaults to prohibit



; File uploads;

File_uploads = on; Whether to allow HTTP way file uploads
; upload_tmp_dir =; Temporary directory for files used for HTTP uploads (unspecified to use system defaults)
Upload_max_filesize = 2M; Maximum allowable size of uploaded files

; Fopen wrappers;

Allow_url_fopen = on; Do you want to allow URLs to be treated as http:.. or the file as ftp: ...

; Dynamic expansion;
; Dynamic Extensions;

; If you want an extension library to load automatically, use the following syntax:
; Extension=modulename.extension
; For example, on Windows,
; Extension=msql.dll
; or under UNIX,
; Extension=msql.so
; Note that this should only be the name of the module and does not require directory information to be placed inside it.
; Use the above Extension_dir to indicate the location of the specified 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 and therefore does not need to use its DLL



; module setting;
; Module Settings;


[Syslog]
Define_syslog_variables = off; Whether to define various system log variables
; such as: $LOG _pid, $LOG _cron, and so on.
; Turning it off is a good idea to improve efficiency.
; At run time, 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; for Win32 systems only
; sendmail_path =; only for UNIX, but also for 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 sample.
; Look at examples/readme.logging to get more explanations.
; Logging.method = db
; logging.directory =/path/to/log/directory

[Java]
; Java.class.path =. \php_java.jar
; java.home = C:\jdk
; java.library = C:\jdk\jre\bin\hotspot\jvm.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; The maximum number of persistent connections. -1 means no limit
Uodbc.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
UODBC.DEFAULTLRL = 4096; Controls a LONG type of field. Returns the number of bytes in the variable, and 0 represents the pass (? ) 0 means PassThru
Uodbc.defaultbinmode = 1; Controls binary data. 0 represents????? Handling of binary data. 0 means passthru, 1 return as are, 2 convert to Char
; See the documentation for Odbc_binmode and Odbc_longreadlen for UODBC.DEFAULTLRL and uodbc.defaultbinmode explanations.

[MySQL]
Mysql.allow_persistent = on; Allow or disable persistent connections
Mysql.max_persistent =-1; The maximum number of persistent connections. -1 means no limit
Mysql.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
Mysql.default_port =; Mysql_connect () The default port used, if not set, mysql_connect ()
; will use the variable $MYSQL _tcp_port, or mysql-tcp Entries (Unix) under/etc/services,
; or Mysql_port (in this order) that is defined in the compilation.
; Win32 environment, only mysql_port will be checked.
Mysql.default_socket =; The default socket name for the local MYSQL connection. NULL, using MYSQL built-in values

Mysql.default_host =; Mysql_connect () The host used by default (invalid in safe mode)
Mysql.default_user =; mysql_connect () User name used by default (invalid in safe mode)
Mysql.default_password =; mysql_connect () The password used by default (invalid in safe mode)
; Note that saving the password under this file is usually a * * * * * idea
; * Any user with access to PHP can run
; ' Echo cfg_get_var (' Mysql.default_password ') ' to display that password!
; And of course, anyone who has the power to read the file can see the password.

[mSQL]
Msql.allow_persistent = on; Allow or disable persistent connections
Msql.max_persistent =-1; The maximum number of persistent connections. -1 means no limit
Msql.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit

[Postgressql]
Pgsql.allow_persistent = on; Allow or disable persistent connections
Pgsql.max_persistent =-1; The maximum number of persistent connections. -1 means no limit
Pgsql.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit

[Sybase]
Sybase.allow_persistent = on; Allow or disable persistent connections
Sybase.max_persistent =-1; The maximum number of persistent connections. -1 means no limit
Sybase.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
; sybase.interface_file = "/usr/sybase/interfaces"
Sybase.min_error_severity = 10; The minimum severity of the error displayed
Sybase.min_message_severity = 10; The lowest importance of the message displayed
Sybase.compatability_mode = off; Compatible with the older version of PHP 3.0 mode. If turned on, this will cause PHP to automatically
; Give them the Sybase type based on the results,
; Instead of taking them all as strings.
; This compatibility mode will not be kept forever,
; So, make the changes you need in your code,
; and close the item.

[SYBASE-CT]
Sybct.allow_persistent = on; Allow or disable persistent connections
Sybct.max_persistent =-1; The maximum number of persistent connections. -1 means no limit
Sybct.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
Sybct.min_server_severity = 10; The minimum severity of the error displayed
Sybct.min_client_severity = 10; The lowest importance of the message displayed

[Bcmath]
Bcmath.scale = 0; Number of 100-binary digits used for all Bcmath functions number of decimal digits for all Bcmath functions

[Browscap]
; browscap = Extra/browscap.ini
Browscap = C:\WIN\SYSTEM\inetsrv\browscap.ini
[Informix]
Ifx.default_host =; Ifx_connect () The host used by default (invalid in safe mode)
Ifx.default_user =; Ifx_connect () User name used by default (invalid in safe mode)
Ifx.default_password =; Ifx_connect () The password used 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 no limit
Ifx.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
Ifx.textasvarchar = 0; If turned on, the Select status character returns the contents of a ' Text blob ' field, not its ID
Ifx.byteasvarchar = 0; If turned on, the Select status character returns the contents of a ' byte blob ' field, not its ID
Ifx.charasvarchar = 0; Tracks spaces that are stripped from fixed-length character Fulieri.
; may be valid for Informix SE users.
Ifx.blobinfile = 0; If opened, the contents of text and byte blobs are exported to a file
; Instead of saving it to memory.
Ifx.nullformat = 0; Null (empty) is returned as an empty field, unless it is set to 1.
; In this case (1), NULL is returned as a string null.

[Session]
Session.save_handler = files; Control method for saving/retrieving data
Session.save_path = C:\win\temp; Parameters passed to the controller when Save_handler is set as a file.
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 the cookie
Session.auto_start = 0; Initialize session at request start
Session.cookie_lifetime = 0; The save time for the cookie in seconds,
; or 0 o'clock until the browser is restarted
Session.cookie_path =/; Valid path for cookies
Session.cookie_domain =; Valid fields for cookies
Session.serialize_handler = PHP; The controller used to connect data
; PHP is the standard controller for PHP.
session.gc_probability = 1; In percent ' garbage collection (defragmentation) ' Process
; The possibility of starting each session initialization.
Session.gc_maxlifetime = 1440; After the number of seconds here, the saved data will be treated as
; ' Fragmentation (garbage) ' and cleaned out by the GC process.
Session.referer_check =; Check the HTTP reference to invalidate the IDs that are included in the URLs extra
session.entropy_length = 0; How many bytes are read from the file
Session.entropy_file =; Specifies that the session ID is established here
; Session.entropy_length = 16
; Session.entropy_file =/dev/urandom
Session.cache_limiter = NoCache; Set to {Nocache,private,public} to determine the HTTP
; Caching problems
Session.cache_expire = 180; Document is obsolete after n minutes
Session.use_trans_sid = 1; Use transitional SID Support if compile-time permission
; --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 means no limit
Mssql.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
Mssql.min_error_severity = 10; The minimum severity of the error displayed
Mssql.min_message_severity = 10; The lowest importance of the message displayed
Mssql.compatability_mode = off; Compatible with the older version of PHP 3.0 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 is 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; The maximum number of persistent connections. -1 means no limit
Ii.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
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"; The default Signio server
Pfpro.defaultport = 443; Default port for connection
Pfpro.defaulttimeout = 30; Default timeout time in seconds

; Pfpro.proxyaddress =; The default agent's IP address (if required)
; Pfpro.proxyport =; The default proxy port
; Pfpro.proxylogon =; Default proxy login (logon username)
; Pfpro.proxypassword =; Password for the default agent

[Sockets]
Sockets.use_system_read = on; Use the system's read () function instead of php_read () encapsulation
; Local Variables: (locally variable)
; Tab-width:4
; End:

(Source: Day-poor birds)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.