Home  >  Article  >  Backend Development  >  Detailed explanation of php-520 configuration instructions in acer aspire 4520 phpini

Detailed explanation of php-520 configuration instructions in acer aspire 4520 phpini

WBOY
WBOYOriginal
2016-07-29 08:37:39925browse

;; About php.ini ;;
  This file must be named 'php.ini' and placed in the directory specified by the PHPiniDir directive in httpd.conf.
 ; The latest version of php.ini can be viewed at the following two locations:
 ; http://cvs.php.net/viewvc.cgi/php-src/php.ini-recommended?view=co
 ; http:/ /cvs.php.net/viewvc.cgi/php-src/php.ini-dist?view=co
 ;;;;;;;;;;;;;
 ;; Syntax;;
 ;;;;;;; ;;;;;;
 ; The syntax of this file is very simple. Whitespace characters and lines starting with semicolons are simply ignored.
 ; Chapter titles (e.g.: [php]) are also simply ignored, even though they may have some meaning in the future.
 ;
 ; The format of setting instructions is as follows:
 ; directive = value
 ; The directive name (directive) is case-sensitive! So "foo=bar" is different from "FOO=bar".
 ; The value can be:
 ; 1. A string delimited by quotation marks (such as: "foo")
 ; 2. A number (integer or floating point number, such as: 0, 1, 34, -1, 33.55 )
 ; 3. A PHP constant (such as: E_ALL, M_PI)
 ; 4. An INI constant (On, Off, none)
 ; 5. An expression (such as: E_ALL & ~E_NOTICE)
 ;
 ; INI file The expressions in only use: bitwise operators, logical NOT, parentheses:
  ; | bitwise OR
 ; & bitwise AND
 ; means closed.
 ;
 ; An empty string can be represented by not writing anything after the equal sign, or using the none keyword:
 ; foo = ; Set foo to the empty string
 ; foo = none ; Set foo to the empty character String
 ; foo = "none"; Set foo to the string 'none'
 ;
 ; If you use constants in dynamic extensions (PHP extensions or Zend extensions) in the directive value,
 ; Then you can only load These constants are used later in these dynamically expanded command lines.
 ;;;;;;;;;;;;;;;;;;
 ;;;httpd.conf ;;
 Override the value of php.ini in httpd.conf for more flexible configuration:
 ; php_value name value; Set a non-bool directive. Set value to none to clear the previous setting
 ; php_flag name on|off ;Only used to set bool type instructions
 ;
 ; PHP constants (such as E_ALL) can only be used in php.ini, and the corresponding mask value must be used in httpd.conf.
 ; Directives with the "SYS" flag can only be used in the global configuration section of httpd.conf,
 ; Directives with the "ini" flag cannot be used in httpd.conf, they can only be used in php.ini.
  ================================================ =========================
 ;;==================== Configuration instructions Detailed explanation========================================
 ;======= ================================================== ================
 ; The setting value of each command below is the same as the built-in default value of PHP-5.2.0.
 ; That is, if 'php.ini' does not exist, or you delete some lines, the default value will be the same.
 ;;;;;;;;;;;;;;;;;;;;;;;
  ;;;;;;;;;;;Apache ;;
 ;;;;;;;;;;;;;;
  [Apache]
  ; Only when using PHP as an Apache module is effective.
 engine = On
 ; Whether to enable the PHP parsing engine.
 ; The PHP parsing engine can be turned on or off based on the directory or virtual host in httpd.conf.
 last_modified = Off
 ; Whether to place the last modification time of the PHP script in the Last-Modified response header.
 xbithack = Off
 ; Whether to parse the file as a PHP executable byte group regardless of what the end of the file is.
 child_terminate = Off
 ; Whether the PHP script is allowed to use the apache_child_terminate() function to terminate the child process after the request ends.
 ; This command is only available when PHP is installed as an Apache1.3 module on UNIX platforms. It does not exist in any other case.
 ;;;;;;;;;;;;;;;;
 ;; PHP Core;;
 The four configuration options are currently only used by the date_sunrise() and date_sunset() functions.
 date.default_latitude = 31.7667
 ;Default latitude
 date.default_longitude = 35.2333
 ;Default longitude
 date.sunrise_zenith = 90.583333
 ;Default sunrise zenith
 zenith = 90.583333
 ;Default sunset zenith
 date.timezone =
 ; The default time zone used for all date and time functions when the TZ environment variable is not set.
   Mainland China should use "PRC"
  The priority of applying time zones is:
  ; 1. The time zone set with the date_default_timezone_set() function (if set)
   2. TZ environment variable (if not empty) ;
 assert.active = On
 ; Whether to enable assert() assertion evaluation
 assert.bail = Off
 ; Whether to abort the execution of the script when a failed assertion occurs
 assert.callback =
 ; The callback function executed when a failed assertion occurs
 assert .quiet_eval = Off
 ; Whether to use quiet evaluation (no error message will be displayed, equivalent to error_reporting=0).
 ; If turned off, the current error_reporting directive value is used when evaluating assertion expressions.
 assert.warning = On
 ; Whether to issue a warning for each failed assertion
 [PHP-Core-SafeMode]
 ; The safe mode was established to solve the security issues of shared servers.
 ; But trying to solve this problem at the PHP layer is structurally unreasonable,
 ; The correct approach should be to modify the web server layer and operating system layer.
 ; Therefore, safe mode is abolished in PHP6 and plans to use the open_basedir directive to replace it.
 safe_mode = Off
 ;SYS
 ; Whether to enable safe mode.
 ; When opening, PHP will check whether the owner of the current script is the same as the owner of the file being operated.
 ; If they are the same, the operation is allowed, if they are different, the operation is denied.
 safe_mode_gid = Off
 ;SYS
 ; In safe mode, a UID comparison check will be performed by default when accessing files.
 ; But in some cases, strict UID checking is not suitable, and loose GID checking is enough.
 ; If you want to relax it to only do GID comparison, you can turn this parameter on.
 safe_mode_allowed_env_vars = "PHP_"
 ;SYS
 ; A prefix list (comma separated) of environment variables that users can only change in safe mode.
 ;Allowing users to set certain environment variables may lead to potential security vulnerabilities.
 ; Note: If this parameter value is empty, PHP will allow users to change any environment variables!
 safe_mode_protected_env_vars = "LD_LIBRARY_PATH"
 ;SYS
 ; List of environment variables (comma separated) that users cannot change in safe mode.
 ; These variables will be protected even when the safe_mode_allowed_env_vars directive is set to allowed.
 safe_mode_exec_dir = "/usr/local/php/bin"
 ;SYS
 ; In safe mode, only executable programs in this directory are allowed to be executed by functions of the system program.
 ; These functions are: system, escapeshellarg, escapeshellcmd, exec, passthru,
 ; proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec
 safe_mode_include_dir =
 ;SYS
 ; In safe mode, this group directory and its subdirectories UID/GID checks will be skipped when files are included.
 ; In other words, if the value here is empty, any file whose UID/GID does not match is not allowed to be included.
 ; The directory set here must already exist in the include_path directive or be included with a full path.
 ; Use colons (semicolons under Win) to separate multiple directories.
 ; The specified restriction is actually a prefix, not a directory name,
 ; That means "/dir/incl" will allow access to "/dir/include" and "/dir/incls"
 ; If you want to Access control is in a specified directory, then please add a trailing slash.
  sql.safe_mode = Off
 ;SYS
 ; Whether to use SQL safe mode.
 ; If turned on, database connection functions that specify default values ​​will use these default values ​​instead of supported parameters.
 ; For the connection function of each different database, please refer to the corresponding manual page for its default value.
 [PHP-Core-Safe]
 allow_url_fopen = On
 ;ini
 ; Whether to allow opening remote files
 allow_url_include = Off
 ;SYS
 ; Whether to allow include/require remote files.
 disable_classes =
 ;ini
 ; This directive accepts a comma-separated list of class names to disable specific classes.
 disable_functions =
 ;ini
 ; This directive accepts a comma-separated list of function names to disable specific functions.
 enable_dl = On
 ;SYS
 ; Whether to allow the use of the dl() function.The dl() function only works when PHP is installed as an apache module.
 ; Disabling the dl() function is mainly for security reasons, because it can bypass the restrictions of the open_basedir directive.
 ; The dl() function is always disabled in safe mode, regardless of how it is set here.
 expose_php = On
 ;ini
 ; Whether to expose the fact that PHP is installed on the server (add its signature in the http header).
 ; It does not pose a direct security threat, but it lets the client know that PHP is installed on the server.
 open_basedir =
 ;SYS
 ; Restricts all files that PHP is allowed to operate (including the file itself) to this group of directory lists.
 ; When a script attempts to open a file outside the specified directory tree, it will be rejected.
 ; All symbolic links will be resolved, so it is not possible to circumvent this restriction through symbolic links.
 ; The special value '.' specifies that the directory where the script is stored will be used as the base directory.
 ; But this is a bit dangerous, because the script's working directory can be easily changed by chdir().
 ; For shared servers, it will be very useful to flexibly set this directive in httpd.conf.
 ; Use semicolons to separate directories in Windows and colons in UNIX systems.
 ; When used as an Apache module, the open_basedir path in the parent directory will be automatically inherited.
 ; The specified restriction is actually a prefix, not a directory name,
 ; That means "/dir/incl" will allow access to "/dir/include" and "/dir/incls",
 ; If you want To control access to a specific directory, add a trailing slash.
 ; The default is to allow all files to be opened.
 [PHP-Core-Error]
 error_reporting = E_ALL & ~E_NOTICE
 ; The error reporting level is the superposition of bit fields. It is recommended to use E_ALL | Runtime warning (non-fatal) Sexual error)
  ; 4E_PARSE   Compile-time parsing error
   8 E_NOTICE  Runtime reminder (often a bug, maybe intentional)
   16 E_CORE_ERROR  Fatal error during PHP startup initialization
   32 E_CORE_WARNING Initialization when PHP starts Process warnings (non-fatal errors)
 ; 64 E_COMPILE_ERROR Compilation-time fatal errors
 ; 128 E_COMPILE_WARNING Compilation-time warnings (non-fatal errors)
 User-defined Warnings (non-fatal errors)
  ; 1024 E_USER_NOTICE   User-defined reminders (often bugs, possibly intentional)
  ; 2048 E_STRICT   Coding standardization warnings (recommendations on how to modify them for forward compatibility)
  ; 4096 E_RECOVERABLE_ERROR Nearly fatal Runtime errors, if not caught, are treated as E_ERROR
  ; 6143 E_ALL    All errors except E_STRICT (8191 in PHP6, including all)
  track_errors = Off
  ; Whether to save the latest error or warning in the variable $php_errormsg information.
 display_errors = On
 ; Whether to display error information as part of the output.
 ; On the final published web site, it is strongly recommended that you turn off this feature and use error logging instead (see below).
 ; Turning this feature on in the final published web site may expose some security information,
 ; Such as file paths, database plans or other information on your web service.
 display_startup_errors = Off
 ; Whether to display PHP startup errors.
 ; Even if the display_errors directive is turned on, turning this parameter off will not display errors when PHP starts.
 ; It is recommended that you turn off this feature unless you must use it for debugging.
 report_memleaks = On
 ; Whether to report memory leaks. This parameter only works in PHP compiled in debug mode,
 ; and must be included in the error_reporting directive E_WARNING
 report_zend_debug = On
 ; There is no documentation yet
 html_errors = On
 ; Whether to use HTML tags in error messages.
 ; Note: Do not use this feature on published sites!
 docref_root = ;"http://localhost/phpmanual/"
 docref_ext = ;".html"
  If the html_errors directive is turned on, PHP will display a hyperlink on the error message,
  Direct link to an explanation of the error Or the page of the function that caused this error.
 ; You can download the php manual from http://www.php.net/docs.php,
 ; and point the docref_root directive to the URL directory where your local manual is located.
 ; You must also set the docref_ext directive to specify the file extension (must contain '.').
 ; Note: Do not use this feature on published sites.
 error_prepend_string = ""
 ; The string used to output before the error message
 error_append_string = "
"
 ; The string used to output after the error message
 Off
 xmlrpc_error_number = 0
 ; No document yet
 [PHP-Core-Logging]
 define_syslog_variables = Off
 ; Whether to define various system log variables, such as: $LOG_PID, $LOG_CRON, etc.
 ; Good idea to turn it off to increase efficiency.
 ; You can call the define_syslog_variables() function to define these variables at runtime.
 error_log =
 ; Which file to record the error log to. The file must be writable by the web server user.
 ; Syslog means recording to the system log (event log under NT, syslog(3) under Unix)
 ; If no value is set here, the error will be logged to the error log of the Web server.
 log_errors = Off
 ; Whether to record errors in the log file, and where to record them depends on the error_log command.
 ; It is strongly recommended that you use logging errors instead of outputting them directly when you finally publish the web site.
 ; This will let you know what went wrong without exposing sensitive information.
 log_errors_max_len = 1024
 ; Set the maximum length of the error source associated with the error message attached to the error log.
 ; The value set here is valid for displayed and logged errors as well as $php_errormsg.
 ; Set to 0 to allow unlimited length.
 ignore_repeated_errors = Off
 ; Whether to ignore repeated error messages when recording error logs.
 ; Error messages must appear on the same line in the same file to be considered duplicates.
 ignore_repeated_source = Off
 ; Whether to ignore repeated error sources when ignoring repeated error messages.
 [PHP-Core-Mail]
 ; To make the mail function available, PHP must be able to access the sendmail program at compile time.
 ; If using other email programs, such as qmail or postfix, make sure to use the corresponding sendmail wrapper.
 ; 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 that sendmail can be found in PATH.
 ; In addition, the user who compiles PHP must have access to the sendmail program.
  SMTP = "localhost"
 ; The host name or IP address of the SMTP server used to send emails in the mail() function. Only for win32.
 smtp_port = 25
 ; The port number of the SMTP server. Only for win32.
  sendmail_from =
 ; The email address in the "From:" header used when sending emails. Only for win32
 ; This option also sets the "Return-Path:" header.
  sendmail_path = "-t -i"
 ;SYS
 ; Only for unix, also supports parameters (the default is 'sendmail -t -i')
 ; The path of the sendmail program, usually "/usr/sbin/ sendmail or /usr/lib/sendmail".
 ; The configure script will try to find the program and set it as the default, but if it fails, you can set it here.
 ; Systems that do not use sendmail should set this command as a sendmail alternative (if available).
 ; For example, Qmail users can usually set it to "/var/qmail/bin/sendmail" or "/var/qmail/bin/qmail-inject".
 ; qmail-inject does not require any options to process emails correctly.
 mail.force_extra_parameters =
 ; Mandatory additional parameter values ​​passed to the sendmail library as additional parameters.
 ; These parameters will always replace the 5th parameter of mail(), even in safe mode.
 [PHP-Core-ResourceLimit]
 default_socket_timeout = 60
 ; Default socket timeout (seconds)
 max_execution_time = 30
 ; Maximum allowed execution time of each script (seconds), 0 means no limit.
 ; This parameter helps prevent inferior scripts from endlessly occupying server resources.
 ; This command only affects the running time of the script itself. Any other time spent outside the running of the script, such as the use of system()/sleep() functions, database queries, file uploads, etc., are not included. .
 ; In safe mode, you cannot use ini_set() to change this setting at runtime.
 Memory_limit = 16M
 ; The maximum number of memory bytes that a script can apply for (K and M can be used as units).
 ; This helps prevent bad scripts from consuming all the memory on the server.
 ; To be able to use this directive, you must use the "--enable-memory-limit" configuration option when compiling.
 ; If you want to cancel the memory limit, you must set it to -1.
 ; After setting this directive, the memory_get_usage() function will become available.
  max_input_time = -1
 ; The maximum allowed time (seconds) for each script to parse input data (POST, GET, upload).
 ; -1 means no limit.
 post_max_size = 8M
 ; Maximum byte length of POST data allowed. This setting also affects file uploads.
 ; If the POST data exceeds the limit, $_POST and $_FILES will be empty.
 ; To upload large files, this value must be greater than the value of the upload_max_filesize directive.
 ; If memory limit is enabled, then this value should be smaller than the value of the memory_limit directive.
 realpath_cache_size = 16K
 ;SYS
 ; Specifies the realpath (normalized absolute path name) buffer size 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
 ; Validity period (seconds) of the information in the realpath buffer.
 ; 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 upload_max_filesize, upload_tmp_dir, post_max_size instructions
 upload_max_filesize = 2M
 ; The maximum size of files allowed to be uploaded.
 upload_tmp_dir =
 ;SYS
 ; The temporary directory where files are stored when uploading files (must be a directory writable by the PHP process user).
 ; If not specified, PHP uses the system default temporary directory.
 [PHP-Core-MagicQuotes]
 ; PHP6 will cancel magic quotes, which is equivalent to all the following commands being Off
 magic_quotes_gpc = On
 ; Whether to use automatic string escaping ( ' " NULL ) for input GET/POST/Cookie data .
 ; The setting here will automatically affect the value of the $_GEST $_POST $_COOKIE array.
 ; If this directive is turned on at the same time as the magic_quotes_sybase directive, only single quotes (') will be escaped as (''),
 ; Others Special characters will not be escaped, i.e. ( " NULL ) will remain intact! !
 ; It is recommended to turn off this feature and use a custom filter function.
 magic_quotes_runtime = Off
 ; Whether to use automatic string escaping ('  NULL) for data generated from external resources at runtime.
 ; If this command is turned on, most functions will return from external resources (databases, text files, etc.) All data will be escaped.
 ; For example: data obtained by SQL query, data obtained by exec() function, etc.
 ; If this command is turned on at the same time as the magic_quotes_sybase command, only single quotes (') will be escaped. Meaning is (''),
 ; Other special characters will not be escaped, that is ( " NULL ) will remain intact! !
 ; It is recommended to turn off this feature and use a custom filter function depending on the specific situation.
 magic_quotes_sybase = Off
 ; Whether to use automatic string escaping in the form of Sybase (use '' to represent ')
 [PHP-Core-HighLight]
 highlight.bg = "#FFFFFF"
 highlight.comment = "#FF8000"
highlight.default = "#0000BB"
Highlight.html = "#000000"
Highlight.keyword = "#007700"
Highlight.string = "#DD0000"
; The color of syntax highlighting mode (usually used to display .phps document).
 ; As long as it can be accepted by , it will work normally.
 [PHP-Core-Langue]
 short_open_tag = On
 ; Whether to allow the use of "" short tag. Otherwise the "" long identifier 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 with XML, you can choose to turn off this option to embed "" directly,
 ; Otherwise you must use PHP to output:
  ; This directive also affects the abbreviated form " asp_tags = Off
 ; Whether to allow the ASP style tag "<% %>", this will also affect the abbreviation "<%=".
 ; This directive will be deleted in PHP6
 arg_separator.output = "&"
 ; The separator 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 separators used by PHP when parsing variables in URLs.
 ; Each character in the string will be treated as a separator.
 ; In addition, you can also use ",&" and so on.
 allow_call_time_pass_reference = On
 ; Whether to force parameters to be passed by reference when calling functions (you will receive a warning every time you use this feature).
 ; PHP opposes this approach and will no longer support it in future versions because it affects the cleanliness of the code.
 ; The encouraged approach is to explicitly specify in the function declaration which parameters are passed by reference.
 ; We encourage you to turn this option off to ensure that your scripts will still work properly in future versions of the language.
 auto_globals_jit = On
 ; Whether to only create when the $_SERVER and $_ENV variables are used (instead of automatically creating them when the script is started).
 ; If these two arrays are not used in the script, turning on this command will improve performance.
 ; For this directive to take effect, the register_globals and register_long_arrays directives must be turned off.
 auto_prepend_file =
 auto_append_file =
 ; Specifies the file name to be automatically parsed before/after the main file. Empty disables this feature.
 ; The file is included as if the include() function was called, so the value of the include_path directive is used.
 ; Note: If the script is terminated via exit(), the automatic suffix will not occur.
 variables_order = "EGPCS"
 ; PHP registers the order of Environment, GET, POST, Cookie, Server variables.
 ; Represented by E, G, P, C, S respectively, register from left to right, new value overwrites old value.
 ; For example, setting to "GP" will cause the GET variable of the same name to be overwritten with a POST variable,
 ; and completely ignore the Environment, Cookie, 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 E, G, P, C, S variables as global variables.
 ; Turning this directive on may cause serious security issues unless your scripts are checked very carefully.
 ; It is recommended to use predefined super global variables: $_ENV, $_GET, $_POST, $_COOKIE, $_SERVER
 ; This instruction is affected by the variables_order instruction.
 ; 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 this instruction to improve performance.
 register_long_arrays = On
 ; Whether to enable old-style long arrays (HTTP_*_VARS).
 ; Encourage the use of short-form predefined superglobal arrays and turn this feature off for better performance.
 ; This directive has been deleted in PHP6.
 Always_populate_raw_post_data = Off
 ; Whether to always generate $HTTP_RAW_POST_DATA variable (raw POST data).
 ; Otherwise, this variable is only generated when data of an 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 by unserialize() with the name of the undefined class as a parameter,
 ; To avoid getting incomplete "__PHP_Incomplete_Class" object.
 ; If no function is specified here, or the specified function does not contain (or implement) the undefined class, a warning message will be displayed.
 ; So only set this directive when you really need to implement such a callback function.
 ; To disable this feature, just leave it blank.
 y2k_compliance = On
 ; Whether to force Y2K compliance to be turned on (may cause problems in non-Y2K compliant browsers).
  zend.ze1_compatibility_mode = Off
 ; Whether to use the mode compatible with Zend Engine I (PHP 4.x).
 ; This will affect object copying, construction (objects without attributes will produce FALSE or 0), and comparison.
 ; In compatibility mode, objects will be passed by value instead of by reference by default.
 precision = 14
 ; The number of significant digits displayed in floating-point data.
  serialize_precision = 100
 ; The precision (significant number of digits) when serializing and storing floating-point and double-precision data.
 ; The default value ensures that floating point data is decoded by the deserializer without losing data.
 [PHP-Core-OutputControl]
 ; The output control function is useful, especially when sending HTTP headers after the information has been output.
 ; The output control function will not act on the HTTP headers sent by functions such as header() or setcookie(),
 ; It will only affect information similar to the echo() function output and information embedded between PHP code.
 Implicit_flush = Off
 ; Whether to require the PHP output layer to automatically refresh data after each output block.
 ; This is equivalent to automatically calling the flush() function after each print(), echo(), and HTML block.
 ; Turning this option on has a serious impact on the performance of program execution and is usually only recommended for debugging.
 ; In CLI SAPI execution mode, this command is On by default.
 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 price is that the output layer slows down a little.
 ; Setting the output buffer can reduce writing and sometimes reducing the sending of network packets.
 ; The actual benefit of this parameter depends largely on what web server and what kind of script you are using.
 output_handler =
 ; Redirect the output of all scripts to an output handler 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 an output handler here, output buffering will be automatically turned on (output_buffering=4096).
 ; Note 0: Only PHP built-in functions can be used here, custom functions should be specified using ob_start() in the script.
 ; 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 command may cause errors in scripts you are not familiar with.
 ; Note 2: You cannot use the two output processing functions "mb_output_handler" and "ob_iconv_handler" at the same time.
 ; You cannot use the "ob_gzhandler" output processing function and the zlib.output_compression directive at the same time.
 ; Note 3: If you use the zlib.output_handler directive to enable zlib output compression, this directive must be empty.
 [PHP-Core-Directory]
 doc_root =
 ;SYS
 ; The "root directory" of PHP. Only valid when non-empty.
 ; If safe_mode=On, all files outside this directory will be rejected.
 ; If you compile PHP without specifying FORCE_REDIRECT and run it in CGI mode on a non-IIS server,
 ; this directive 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(), and fopen_with_path() functions to find files.
 ; The format is similar to the system's PATH environment variable (separated by colons under UNIX and semicolons under Windows):
 ; UNIX: "/path1:/path2"
 ; Windows: "path1;path2"
 ; In the included path Use '.' to allow relative paths, which represent the current directory.
 user_dir =
 ;SYS
 ; Tell PHP which directory to look for when opening the script using /~username. It is only valid when it is not empty.
  That is, use the basic directory name of the PHP file under the user directory, for example: "public_html"
 extension_dir = "/path/to/php"
 ;SYS
  The directory where the extension library (module) is stored, which is PHP Directory used 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 "Content-Type: text/html" by default "HTTP header.
 ; If the default_charset directive is set to "gb2312",
 ; Then "Content-Type: text/html; charset=gb2312" will be automatically output.
 [PHP-Core-Unicode]
 detect_unicode = On
 ; No documentation yet
 [PHP-Core-Misc]
 auto_detect_line_endings = Off
 ; Whether to let PHP automatically detect end-of-line characters (EOL).
 ; If your script must process Macintosh files,
 ; Or if you are running on a Macintosh and also need to process unix or win32 files,
 ; Turning this command on will allow PHP to automatically detect EOL for fgets() and file() The function works fine.
 ; But it will also cause incompatible behavior for people who use the carriage return (CR) as the project separator under Unix systems.
 ; In addition, there will be a small performance loss when detecting the EOL habit of the first row.
 browscap = "c:/windows/system32/inetsrv/browscap.ini"
 ;SYS
 ; Only PWS and IIS require this setting
 ; You can download it from http://www.garykeith.com/browsers/downloads.asp
 ; Get a browsercap.ini file.
  ignore_user_abort = Off
 ; Whether to insist on completing the entire request even after the user aborts the request.
 ; You should consider turning it on when performing a long request,
 ; because a long request may cause the user to terminate midway or the browser to time out.
  user_agent = ;"PHP"
  ; Define "User-Agent" string
  ;url_rewriter.tags = "a=href,area=href,frame=src,form=,fieldset="
  ; Although this directive belongs to the core of PHP Part, but used for the configuration of the Session module
 Extension
 ; Load dynamic extensions when PHP starts. For example: extension=mysqli.so
 ; "=" After that, only the name of the module file can be used, and the path information cannot be included.
 ; 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 ; Undocumented
  cgi.fix_pathinfo = On/Off(??)
 ; Whether to provide real PATH_INFO/PATH_TRANSLATED support for CGI (comply with the cgi specification).
 ; The previous behavior was to set PATH_TRANSLATED to SCRIPT_FILENAME regardless of what PATH_INFO was.
 ; Turning this option on will cause PHP to correct its paths to comply with the CGI specification, otherwise the old non-conforming behavior will still be used.
 ; You are encouraged to turn on this directive and fix the script to use SCRIPT_FILENAME instead of PATH_TRANSLATED.
 ; For more information about PATH_INFO, please see the cgi specification.
 cgi.force_redirect = On
 ; Whether to turn on cgi force redirection. It is highly recommended to turn this on to provide security for PHP running in CGI mode.
 ; If you turn it off yourself, please be responsible for the consequences.
 ; Note: It must be turned off on IIS/OmniHTTPD/Xitami!
  cgi.redirect_status_env =
 ; If cgi.force_redirect=On, and PHP is running on a server 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 is OK. Go ahead and do it.
 ; Setting this variable will lead to security vulnerabilities, please be sure to understand what you are doing before setting it.
 cgi.rfc2616_headers = 0
 ; Specifies what headers PHP uses when sending HTTP response codes.
 ; 0 means sending a "Status:" header, which is supported by Apache and other web servers.
 ; If set to 1, PHP uses the RFC2616 standard header.
 ; Unless you know what you are doing, keep the default value 0
 cgi.nph = Off
 ; Whether to force the "Status: 200" status code to be sent for all requests in CGI mode.
 fastcgi.impersonate = Off
 ; FastCGI in IIS supports the ability to impersonate client security tokens.
 ; This enables IIS to define the security context of the request upon which the runtime is based.
 ; Mod_fastcgi in Apache does not support this feature (03/17/2002)
 ; Set to On if running in IIS, the default is Off.
 fastcgi.logging = On
 ; Whether to log connections made through FastCGI.
 [PHP-Core-Weirdy]
 ; These options only exist in the documentation, but not in the output of the phpinfo() function
 async_send = Off
 ; Whether to send asynchronously.
  from = ;"john@doe.com"
  Define the password for anonymous ftp (an email address)
  ;;;;;;;;;;;;;;;;;;;
  ;; Near core module;;
 ;;;;;;;;;;;;;;;;;;;
  [Pcre]
 ;Perl compatible regular expression module
 pcre.backtrack_limit = 100000
 ;The maximum number of backtracking steps for PCRE.
 pcre.recursion_limit = 100000
 ; The maximum recursion depth of PCRE.
 ; If you set this value very high, it may exhaust the stack space of the process and cause PHP to crash.
  [Session]
 ; Unless a variable is registered using session_register() or $_SESSION.
 ; Otherwise, regardless of whether session_start() is used or not, no session records will be automatically added.
 ; Objects containing resource variables or circular references contain references to themselves and cannot be saved in the session.
 ; The register_globals directive affects the storage and recovery of session variables.
  session.save_handler = "files"
 ; The name of the handler that stores and retrieves data associated with the session. Defaults to files ("files").
 ; If you want to use a custom processor (such as a database-based processor), use "user".
 ; There is a processor using PostgreSQL: http://sourceforge.net/projects/phpform-ext/
  session.save_path = "/tmp"
 ; Parameters passed to the storage processor. For the files processor, this value is the path to the session data file where the session data file was created.
 ; The default is the temporary folder path under Windows.
 ; You can use the pattern "N;[MODE;]/path" to define the path (N is an integer).
 ; N means using N-level subdirectories instead of saving all data files in one directory.
 ; [MODE;] Optional, must use octal number, default 600 (=384), indicating the maximum number of session files saved in each directory.
 ; This is a good idea to improve the performance of a large number of sessions.

The above introduces the detailed explanation of the php-520 configuration instructions in acer aspire 4520 phpini, including the content of acer aspire 4520. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
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