Monday, 3 November 2014

PHP Runtime configuration

error_reportingNULLSets the error reporting level (either an integer or  named constants)PHP_INI_ALL
display_errors"1"Specifies whether errors should be printed to the screen, or if they should be hidden from the user.
Note: This feature should never be used on production systems (only to support your development)
PHP_INI_ALL
display_startup_errors"0"Even when display_errors is on, errors that occur during PHP's startup sequence are not displayed
Note: It is strongly recommended to keep display_startup_errors off, except for debugging
PHP_INI_ALL
log_errors"0"Defines whether script error messages should be logged to the server's error log or error_log.
Note: It is strongly advised to use error logging instead of error displaying on production web sites
PHP_INI_ALL
log_errors_max_len"1024"Sets the maximum length of log_errors in bytes. The value "0" can be used to not apply any maximum length at all. This length is applied to logged errors, displayed errors, and also to $php_errormsg (available since PHP 4.3)PHP_INI_ALL
ignore_repeated_errors"0"Specifies whether to log repeated error messages. When set to "1" it will not log errors with repeated errors from the same file on the same line (available since PHP 4.3)PHP_INI_ALL
ignore_repeated_source"0"Specifies whether to log repeated error messages. When set to "1" it will not log errors with repeated errors from different files or source lines (available since PHP 4.3)PHP_INI_ALL
report_memleaks"1"If set to "1" (the default), this parameter will show a report of memory leaks detected by the Zend memory manager (available since PHP 4.3)PHP_INI_ALL
track_errors"0"If set to "1", the last error message will always be present in the variable $php_errormsgPHP_INI_ALL
html_errors"1"Turns off HTML tags in error messagesPHP_INI_ALL
PHP_INI_SYSTEM in PHP <= 4.2.3.
xmlrpc_errors"0"Turns off normal error reporting and formats errors as XML-RPC error message (available since PHP 4.1)PHP_INI_SYSTEM
xmlrpc_error_number"0"Used as the value of the XML-RPC faultCode element (available since PHP 4.1)PHP_INI_ALL
docref_root""(available since PHP 4.3)PHP_INI_ALL
docref_ext""(available since PHP 4.3.2)PHP_INI_ALL
error_prepend_stringNULLSpecifies a string to output before an error messagePHP_INI_ALL
error_append_stringNULLSpecifies a string to output after an error messagePHP_INI_ALL
error_logNULLSpecifies the name of the file where script errors should be logged. The file should be writable by the web server's user. If the special value syslog is used, the errors are sent to the system logger insteadPHP_INI_ALL

No comments:

Post a Comment