1. Trang chủ
  2. » Công Nghệ Thông Tin

PHP Developer''''s Dictionary- P117 ppt

5 90 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 314,77 KB

Nội dung

PHP Developer’s Dictionary IT-SC book 580 Syntax auto_append_file string Description The auto_append_file directive indicates which file should be parsed after the main file is processed. The effective result is as though the file were called with an include() function; therefore, the include_path setting is used. To disable this feature, set the option to none. This option is useful for displaying copyright information and other details you might need at the end of each Web page. The default value is none. auto_prepend_file Syntax auto_prepend_file string Description The auto_prepend_file directive indicates which file should be parsed before the source file is processed. The effective result is as though the file were called with the include() function; therefore, the include_path setting is used. To disable this feature, set the option to none. This option is useful for titles and other content that is used at the beginning of each Web page. The default value is none. cgi_ext Syntax cgi_ext string Description The cgi_ext directive is not yet implemented. display_errors Syntax PHP Developer’s Dictionary IT-SC book 581 display_errors boolean Description The display_errors directive is used to indicate whether PHP error messages should be returned within the output HTML. The error messages are generally used only during debugging. In production environments, a "friendly" error should be returned to the user. The default value is On. doc_root Syntax doc_root string Description The doc_root directive is used in conjunction with safe_mode to allow PHP to access files only from this directory. This provides an additional layer of security. The default value is none. error_log Syntax error_log string Description The error_log directive specifies the name of the file in which any errors that occur during processing should be logged. A value of syslog indicates that the system logger mechanism is used instead of a file. For UNIX systems, this is the syslog file referred to as output option 3, where standard out is (1) and standard error is (2). On Windows NT and Windows 2000, this information is logged by the Event Log System. The default value is none. error_reporting Syntax PHP Developer’s Dictionary IT-SC book 582 error_reporting integer Description The error_reporting directive indicates which level of error messages should be reported. The options include 1 for normal errors 2 for normal warnings 4 for parser errors 8 for noncritical, style-related warnings These options can be added together to provide combinations of the reporting levels. For instance, the default value of 7 indicates levels 1 + 2 + 4 = 7. open_basedir Syntax open_basedir string Description The open_basedir directive limits which files can be opened from a PHP script to those in the specified directory tree. The common methods for opening a file that this will affect are fopen and gzopen. Symbolic links are resolved by PHP so that you can't circumvent this security level. To specify multiple directories, separate the values with semicolons in Windows and colons otherwise (similar to the PATH environment variable). A "." indicates that files can be accessed from the same directory from which the script is running. The default for this directive is to allow files from any location to be opened. gpc_order Syntax gpc_order string Description PHP Developer’s Dictionary IT-SC book 583 The gpc_order directive sets the order of GET/POST/COOKIE variable parsing. Note that this function has been deprecated in favor of variable_order. When PHP reads an incoming request, it automatically analyzes the request and identifies variables and their values, making them available for script access. This setting specifies the order in which the request is analyzed. The order indicates which option will take precedence when the same variable name appears more than once. The options to the right have a higher precedence than those to the left. For example, a gpc_order of PC tells PHP to ignore the GET variables and that variables from the COOKIE value have precedence over POST values. The default value is GPC. ignore_user_abort Syntax ignore_user_abort boolean Description The ignore_user_abort directive specifies whether a script should run to completion if the connection with the user is lost. The default is on, which indicates that a script should always finish running. Note that you will likely want to ensure that this value is set to On if your script is performing a transactional operation. include_path Syntax include_path string Description The include_path directive indicates which directories should be searched when an included file is specified. The syntax for this setting mimics the operating system's PATH environment variable, where a semicolon separates multiple paths in Windows and a colon in UNIX. The default for this option is the current directory (only). Here is a UNIX example: include_path_= /usr/local/apache/htdocs:/home/user1 isapi_ext Syntax PHP Developer’s Dictionary IT-SC book 584 isapi_ext string Description The isapi_ext directive is not yet implemented. log_errors Syntax log_errors boolean Description The log_errors directive indicates whether error messages should be logged to the Web server's error log. The actual details of this error log depend on the Web server that is being used with PHP. The default value is Off. magic_quotes_gpc Syntax magic_quotes_gpc boolean Description The magic_quotes_gpc directive sets whether single quotes, double quotes, NULLs, and backslashes are automatically escaped with a backslash when processing the GET/POST/COOKIE values for variables. The similar option, magic_quotes_sybase, indicates that a single quote should be escaped with another single quote instead of a backslash. The default value is On. magic_quotes_runtime Syntax magic_quotes_runtime boolean . display_errors Syntax PHP Developer’s Dictionary IT-SC book 581 display_errors boolean Description The display_errors directive is used to indicate whether PHP error messages should. opened from a PHP script to those in the specified directory tree. The common methods for opening a file that this will affect are fopen and gzopen. Symbolic links are resolved by PHP so that. string Description The doc_root directive is used in conjunction with safe_mode to allow PHP to access files only from this directory. This provides an additional layer of security. The

Ngày đăng: 07/07/2014, 05:20

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN