[PHP-Core-Mail]
; To make the mail function available, PHP must be able to access the sendmail program at compile time.
; If you use other mail programs, such as qmail or postfix, make sure that the corresponding sendmail wrapper is used.
; PHP will first search for sendmail in the system's PATH environment variable, and then search in the following order:
; /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
; It is strongly recommended to be able to find sendmail in PATH.
; In addition, users who compile PHP must be able to access the sendmail program.
SMTP = "localhost"
;The host name or IP address of the SMTP server used to send mail in the mail() function. Only for win32.
smtp_port = 25
; Port number of the SMTP server. Only for win32.
sendmail_from =
; The email address in the "From:" header used when sending the email. Only for win32
; This option also sets the "Return-Path:" header.
sendmail_path = "-t -i"
;SYS
; Only used for unix, parameters can also be supported (the default is 'sendmail -t -i')
; The path to the sendmail program is usually "/usr/sbin/sendmail or /usr/lib/sendmail".
; The configure script will try to find the program and set it as the default value, but if it fails, it can be set here.
; Systems that do not use sendmail should set this command as a sendmail replacement (if any).
; For example, Qmail users can usually be set to "/var/qmail/bin/sendmail" or "/var/qmail/bin/qmail-inject".
; qmail-inject No options are required to process mail correctly.
mail.force_extra_parameters =
; Forced specified parameter added value passed as an additional parameter to the sendmail library.
; These parameters always replace the fifth parameter of mail(), even in safe mode.
[PHP-Core-ResourceLimit]
default_socket_timeout = 60
; Default socket timeout (seconds)
max_execution_time = 30
; The maximum allowable execution time (seconds) per script, 0 means there is no limit.
; This parameter helps prevent poor-quality scripts from consuming server resources endlessly.
; This directive only affects the running time of the script itself, any other time spent outside the running of the script,
; For example, the use of system()/sleep() functions, database query, file upload, etc. are not included.
; In safe mode, you cannot use ini_set() to change this setting at runtime.
memory_limit = 128M
; The maximum number of memory bytes that a script can apply for (K and M can be used as units).
; This helps prevent poor-quality scripts from consuming all memory on the server.
; To be able to use this directive, you must use the "--enable-memory-limit" configuration option at compile time.
; If you want to cancel the memory limit, it must be set to -1 .
; After setting this directive, the memory_get_usage() function will become available.
max_input_time = -1
; The maximum allowable time (seconds) for each script to parse input data (POST, GET, upload).
; -1 means no restrictions.
max_input_nesting_level = 64
; Maximum nesting depth of input variables (no more explanation documentation yet)
post_max_size = 8M
; Maximum byte length of allowed POST data. This setting also affects file upload.
; If the POST data exceeds the limit, then $_POST and $_FILES will be empty.
; To upload a large file, the value must be greater than the value of the upload_max_filesize directive.
; If memory limit is enabled, the value should be less than the value of the memory_limit directive.
realpath_cache_size = 16K
;SYS
; Specifies the buffer size of the realpath (normalized absolute pathname) used by PHP.
; This value should be increased to improve performance on systems where PHP opens a large number of files.
realpath_cache_ttl = 120
;SYS
; The validity period of information in the realpath buffer (seconds).
; For systems where files rarely change, this value can be increased to improve performance.
[PHP-Core-FileUpLoad]
file_uploads = On
;SYS
; Whether to allow HTTP file uploads.
; See the upload_max_filesize, upload_tmp_dir, post_max_size directive
upload_max_filesize = 2M
; Maximum size of the file allowed to be uploaded.
upload_tmp_dir =
;SYS
; A temporary directory where files are stored when uploading (must be a directory that can be written by the PHP process user).
; If not specified, PHP uses the system default temporary directory.
[PHP-Core-MagicQuotes]
; PHP6 deleted the following instructions, which is equivalent to all Off
magic_quotes_gpc = On
; Whether to use automatic string escape (' " \ NULL) for the input GET/POST/Cookie data.
; The settings here will automatically affect the value of the $_GEST $_POST $_COOKIE array.
; If this directive is opened at the same time as the magic_quotes_sybase directive, only single quotes (') are escaped to (''),
; Other special characters will not be escaped, i.e. ( " \ NULL ) will remain as it is!!
; It is recommended to turn off this feature and use a custom filtering function.
magic_quotes_runtime = Off
; Whether to use automatic string escape (' " \ NULL ) for data generated from external resources at runtime.
; If this instruction is opened, most functions will be escaped from external resources (databases, text files, etc.).
; For example: data obtained by querying SQL, data obtained by exec() function, etc.
; If this directive is opened at the same time as the magic_quotes_sybase directive, only single quotes (') are escaped to (''),
; Other special characters will not be escaped, i.e. ( " \ NULL ) will remain as it is!!
; It is recommended to turn off this feature and use a custom filtering function depending on the situation.
magic_quotes_sybase = Off
; Whether to use automatic string escape in Sybase form (expressed with '')
[PHP-Core-HighLight]
= "#FFFFFF"
= "#FF8000"
= "#0000BB"
= "#000000"
= "#007700"
= "#DD0000"
; Colors of syntax highlighting mode (usually used to display .phps files).
; As long as something that can be accepted by <font color=xxx> can work normally.
[PHP-Core-Langue]
short_open_tag = On
; Is the short "<? ?>" flag allowed? Otherwise, the "<?php ?>" long logo must be used.
; Unless your php program only runs in a controlled environment and is only for your own use, please do not use short tags.
; If you want to use PHP in conjunction with XML, you can choose to turn off this option to facilitate direct embedding of "<?xml ... ?>",
; Otherwise you have to use PHP to output: <? echo '<?xml version="1.0"'; ?>
; This directive will also affect the abbreviation "<?=", which is equivalent to "<? echo", and a short mark must be opened to use it.
asp_tags = Off
; Whether to allow ASP-style tag "<% %>", this will also affect the abbreviation "<%=".
; This directive will be deleted in PHP6
arg_separator.output = "&"
; The delimiter used to separate parameters in the URL generated by PHP.
; In addition, you can also use "&" or "," and so on.
arg_separator.input = "&"
; List of delimiters used when PHP parses variables in URLs.
; Every character in the string will be treated as a splitter.
; In addition, you can also use ",&" and so on.
allow_call_time_pass_reference = On
; Whether to force pass parameters by reference when function calls (a warning will be received every time you use this feature).
; php opposes this practice and deletes the directive in PHP6 (equivalent to setting it to Off) because it affects the tidy code.
; The encouraged method is to 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 properly in future versions of the language.
auto_globals_jit = On
; Whether it is created only when the $_SERVER and $_ENV variables are used (rather than automatically created as soon as the script is started).
; If these two arrays are not used in the script, opening the directive will get a performance improvement.
; For this directive to take effect, the register_globals and register_long_arrays directives must be closed.
auto_prepend_file =
auto_append_file =
; Specifies the file name that is automatically parsed before/after the main file. A blank means that this feature is disabled.
; This file is like calling the include() function and is included, so the value of the include_path directive is used.
; Note: If the script terminates via exit(), the automatic suffix will not occur.
variables_order = "EGPCS"
; PHP registration Environment, GET, POST, Cookie, Server variable order.
; Use E, G, P, C, S respectively, and register from left to right, and the new value overwrites the old value.
; For example, setting to "GP" will cause the GET variable to be overwritten with the POST variable,
; and completely ignore Environment, cookies, Server variables.
; It is recommended to use "GPC" or "GPCS" and use the getenv() function to access environment variables.
register_globals = Off
; Whether to register the E, G, P, C, S variables as global variables.
; Opening the directive can cause serious security issues unless your script is checked very carefully.
; It is recommended to use predefined hyperglobal variables: $_ENV, $_GET, $_POST, $_COOKIE, $_SERVER
; This directive is affected by the variables_order directive.
; This directive has been deleted in PHP6.
register_argc_argv = On
; Whether to declare $argv and $argc global variables (including information using the GET method).
; It is recommended not to use these two variables and turn off the instruction to improve performance.
register_long_arrays = On
; Whether to enable old-style long arrays (HTTP_*_VARS).
; Encourage the use of short predefined hyperglobal arrays and turn off the feature for better performance.
; This directive has been deleted in PHP6.
always_populate_raw_post_data = Off
; Whether the $HTTP_RAW_POST_DATA variable (raw POST data) is always generated.
; Otherwise, this variable is generated only if data of unrecognized MIME type is encountered.
; However, a better way to access the raw POST data is php://input .
; $HTTP_RAW_POST_DATA is not available for form data with enctype="multipart/form-data".
unserialize_callback_func =
; If the deserialization processor needs to instantiate an undefined class,
; The callback function specified here will be called unserialize() with the name of the undefined class as a parameter.
; To avoid getting incomplete "__PHP_Incomplete_Class" object.
; If there is no specified function here, or the specified function does not contain (or implement) that undefined class, a warning message will be displayed.
; So this instruction is set only if you really need to implement such a callback function.
; To disable this feature, just put it empty.
y2k_compliance = On
; Whether to force open 2000 adaptation (may cause problems in non-Y2K adaptation browsers).
zend.ze1_compatibility_mode = Off
; Whether to use Zend engine I (PHP) compatible mode. This instruction (equivalent to Off) will be deleted in PHP6.
; This will affect the copying, construction of objects (objects without attributes will produce FALSE or 0), and comparison.
; In compatibility mode, objects will be passed by value instead of default by reference.
precision = 14
; Number of significant digits displayed by floating point data.
serialize_precision = 100
; Accuracy (number of significant bits) when serializing floating-point and double-precision data.
; The default value ensures that floating-point data is not lost when decoded by the deserialization program.
[PHP-Core-OutputControl]
; The output control function is very useful, especially if the HTTP header has been sent after the information has been output.
; The output control function will not act on the HTTP header sent by functions such as header() or setcookie().
; and will only affect information similar to the output of the echo() function and information embedded between the PHP code.
implicit_flush = Off
; Whether the PHP output layer is required to automatically refresh the data after each output block.
; This is equivalent to automatically calling the flush() function after each print(), echo(), HTML block.
; Turning on this option has a serious impact on the performance of program execution and is usually only recommended for debugging.
; In the execution mode of CLI SAPI, this instruction defaults to On .
output_buffering = 0
; Output buffer size (bytes). The recommended value is 4096~8192.
; Output buffering allows you to send HTTP headers (including cookies) even after outputting the body content.
; The cost is that the output layer slows down a little bit.
; Setting the output buffer can reduce writes and sometimes reduce the sending of network packets.
; The actual benefit of this parameter depends largely on what web server you are using and what kind of scripts.
output_handler =
; Redirects the output of all scripts to an output processing function.
; For example, when redirecting to the mb_output_handler() function, the character encoding will be transparently converted to the specified encoding.
; Once you specify the output handler here, the output buffer will be automatically turned on (output_buffering=4096).
; Note 0: Only functions built in PHP can be used here, and custom functions should be specified in the script using ob_start().
; Note 1: Portable scripts cannot rely on this directive, but should use the ob_start() function to explicitly specify the output processing function.
;Using this directive may cause errors in certain scripts that you are not familiar with.
; Note 2: You cannot use both "mb_output_handler" and "ob_iconv_handler" output processing functions at the same time.
; You can't use "ob_gzhandler" to output the processing function and the zlib.output_compression directive at the same time.
; Note 3: If zlib output compression is enabled using the zlib.output_handler instruction, the instruction must be empty.
[PHP-Core-Directory]
doc_root =
;SYS
; "root directory" of PHP. Valid only when non-empty.
; If safe_mode=On, all files outside this directory are rejected.
; If FORCE_REDIRECT is not specified when compiling PHP and runs in CGI on a non-IIS server,
; This command must be set (see the Security section in the manual).
; The alternative is to use the cgi.force_redirect directive.
include_path = ".:/path/to/php/pear"
; Specify a set of directories for the require(), include(), fopen_with_path() function to find files.
; The format is similar to the system's PATH environment variables (separated by colons under UNIX, and semicolons under Windows):
; UNIX: "/path1:/path2"
; Windows: "\path1;\path2"
; Use '.' in the include path to allow relative paths, which represent the current directory.
user_dir =
;SYS
; Tell php to which directory to search when opening the script using /~username, which is only valid when it is not empty.
; That is, the basic directory name of the PHP file is used under the user directory, for example: "public_html"
extension_dir = "/path/to/php"
;SYS
; The directory where the extension library (module) is the directory where PHP uses to find dynamic extension modules.
; The default is "C:/php5" under Windows
[PHP-Core-HTTP]
default_mimetype = "text/html"
default_charset = ;"gb2312"
; PHP will automatically output the "Content-Type: text/html" HTTP header by default.
; If the default_charset directive is set to "gb2312",
; Then "Content-Type: text/html; charset=gb2312" will be automatically output.
; PHP6 opposes the use of the default_charset directive, and recommends the use of the unicode.output_encoding directive.
[PHP-Core-Unicode]
; PHP6 provides comprehensive Unicode support based on the ICU (International Components for Unicode) library.
; When compiling, you need to use --with-icu-dir=<dir> to specify the installation location of the ICU header file and library.
; Except for detect_unicode, all other instructions are newly added to PHP6.
; Information about PHP6 is still lacking, so this part of the content may be incomplete or even errors.
detect_unicode = On
; Instructs whether the Zend engine detects whether the script contains multibyte characters by checking the script's BOM (byte order mark).
; It is recommended to close. PHP6 has cancelled this command and used the unicode.script_encoding command to replace its function.
= Off
; Whether to enable Unicode support.
; If you open this command, PHP will become a complete Unicode environment, such as:
; All strings and variables accepted from HTTP will become Unicode, and all PHP identifiers can also use Unicode characters.
; Moreover, PHP will use Unicode strings internally and be responsible for automatic conversion of peripheral non-Unicode characters.
; For example: HTTP input and output, streaming, file system operations, etc., and even itself will be parsed according to UTF-8 encoding.
; After enabling this instruction, you must specify the binary string explicitly. PHP will make no assumptions about the contents of binary strings.
; Therefore, your program must ensure that it can handle binary strings appropriately.
; If you close this directive, PHP's behavior will be exactly the same as before:
; Strings will not become Unicode, and files and binary strings will also be backward compatible and will also be parsed in the "as-is" style.
; Whether or not this directive is opened or not, all functions and operators transparently support Unicode strings.
unicode.fallback_encoding = UTF-8
; Set default values for all other unicode.*_encoding directives.
; That is to say, if a unicode.*_encoding directive is not explicitly set, the value set here will be used.
unicode.runtime_encoding =
; Runtime encoding specifies the encoding used when converting binary strings internally by the PHP engine.
; The settings here have no effect on I/O-related operations (such as: writing standard output/reading file system/decoding HTTP input variables).
; PHP also allows you to explicitly convert strings:
; (binary)$str -- Convert to binary string
; (unicode)$str -- Convert to Unicode string
; (string)$str -- if On, it will be converted to a Unicode string, otherwise it will be converted to a binary string
; For example, if the value of the directive iso-8859-1 and $uni is a Unicode string, then
; $str = (binary)$uni
; Will wait until a binary string encoded using iso-8859-1.
;PHP will implicitly convert the relevant string to Unicode before connecting, comparing, passing parameters, etc., and then perform operations.
; For example, when connecting binary strings with Unicode,
; PHP will use the settings here to convert the binary string to a Unicode string and then perform the operation.
unicode.output_encoding =
; PHP outputs encoding used by non-binary strings.
; Automatically convert output contents such as 'print' and 'echo' to the encoding set here (no binary string conversion is performed).
;When writing data to external resources such as files,
; You must rely on stream encoding features or manually encode data using Unicode extended functions.
; In PHP6, it is recommended to use the previous default_charset directive.
; The previous default_charset directive simply specifies the character set in the Content-Type header and does not make any conversions to the actual output.
; In PHP6, the default_charset directive is only valid when it is off.
; After setting this instruction, the value of the instruction will be filled in the 'charset' part of the Content-Type output header.
; regardless of how the default_charset directive is set.
unicode.http_input_encoding =
; Encoding of contents of variables (such as $_GET and _$POST) obtained through HTTP.
; This feature was still under development until April 2007...
unicode.filesystem_encoding =
; Encoding of directory names and file names of the file system.
; File system-related functions (such as opendir()) will use this encoding to accept and return file names and directory names.
; The settings here must be exactly the same as the encoding actually used by the file system.
unicode.script_encoding =
; The default encoding of the PHP script itself.
; You can write PHP scripts using any ICU-supported encoding.
; If you want to set its encoding for a separate script file, you can use it at the beginning of the script
; <?php declare(encoding = 'Shift-JIS'); ?>
; to specify. Note: It must start with the first line, and there must be no characters (including blanks).
;This method can only affect the script it is located in and will not affect any other scripts included.
unicode.stream_encoding = UTF-8
unicode.from_error_mode = 2
unicode.from_error_subst_char = 3f
; No documentation yet
[PHP-Core-Misc]
auto_detect_line_endings = Off
; Whether to let PHP automatically detect line ending characters (EOL).
; If your script must process Macintosh files,
; Or you run on Macintosh and you also have to process unix or win32 files,
; Open this instruction to allow PHP to automatically detect EOL so that the fgets() and file() functions can work properly.
; But it will also lead to incompatible behavior for people who use carriage return (CR) as project separator under Unix systems.
; In addition, there will be a small performance loss when detecting EOL habits in the first row.
browscap = ;"c:/windows/system32/inetsrv/"
;SYS
; Only PWS and IIS require this setting
; You can use /browsers/
; Get a file.
ignore_user_abort = Off
; Whether to persist in completing the entire request even after the user aborts the request.
; When executing a long request, consider opening it,
; Because long requests may cause the user to abort midway or the browser timeout.
user_agent = ;"PHP"
; Define the "User-Agent" string
;url_rewriter.tags = "a=href,area=href,frame=src,form=,fieldset="
; Although this directive belongs to the core part of PHP, it is used for the configuration of the Session module
;extension =
; Load dynamic extensions on PHP startup. For example: extension=
; "="The name of the module file can only be used after that, and cannot contain path information.
; Path information should only be provided by the extension_dir directive.
; Idea, on Windows, the following extensions are already built in:
; bcmath ; calendar ; com_dotnet ; ctype ; session ; filter ; ftp ; hash
; iconv ; json ; odbc ; pcre ; Reflection ; date ; libxml ; standard
; tokenizer ; zlib ; SimpleXML ; dom ; SPL ; wddx ; xml ; xmlreader ; xmlwriter
[PHP-Core-CGI]
; These instructions are only valid when running PHP in CGI mode
cgi.discard_path = Off
; No documentation yet (new instructions added to PHP6)
cgi.fix_pathinfo = On
;SYS
; Whether to provide true PATH_INFO/PATH_TRANSLATED support for CGI (comply with cgi specifications).
; The previous behavior was to set PATH_TRANSLATED to SCRIPT_FILENAME regardless of PATH_INFO.
; Turning on this option will cause PHP to correct its path to comply with CGI specifications, otherwise legacy non-standard behavior will still be used.
; Encourage you to open this directive and correct the script to use SCRIPT_FILENAME instead of PATH_TRANSLATED .
; For more information about PATH_INFO, see the cgi specification.
cgi.force_redirect = On
;SYS
; Whether to turn on cgi forced redirection. It is highly recommended to turn on php that is running CGI.
; If you close it yourself, be responsible for the consequences.
; Note: On IIS/OmniHTTPD/Xitami, you must close it!
cgi.redirect_status_env =
;SYS
; If cgi.force_redirect=On and run PHP on servers other than Apache and Netscape,
; You may need to set a cgi redirection environment variable name, and PHP will look for it to know if it can continue to execute.
; Setting this variable will cause security vulnerabilities. Be sure to figure out what you are doing before setting it up.
cgi.rfc2616_headers = 0
; Specifies what header PHP uses when sending HTTP response code.
; 0 means sending a "Status:" header, which is supported by Apache and other web servers.
; If set to 1, PHP uses RFC2616 standard header.
; Unless you know what you are doing, keep its default value 0
= Off
; Whether to force the "Status: 200" status code to all requests in CGI mode.
cgi.check_shebang_line =On
;SYS
; CGI PHP checks whether the line at the top of the script starts with #!.
; If the script is to be able to run both individually and in PHP CGI mode, this starting line is necessary.
; If this instruction is turned on, PHP in CGI mode will skip this line.
Previous page123Next pageRead the full text