PHP4 configuration file php.ini annotations and configuration instructions

Source: Internet
Author: User

Throughout the file, in order to keep the original file from being corrupted, I took the following way

1, can be directly annotated, in the ";" after adding.

2, if it is not easy to annotate directly, then add another, but all with ";;" Start

The "Boolean" flag in the file can be the following value
Open: 1 or on or True or Yes;
OFF: 0 or off or False or No

;; Engine = Boolean
This is useful for the Apache PHP4 module, which sets the switch state of the PHP4 parser

;; Short_open_tag = Boolean
This item controls three tags of PHP in HTML. On then three tags are available, otherwise only <?php and <script> two tags can be run

;; Asp_tags = Boolean
Friends who are accustomed to using PHP can turn this on, using an ASP-like <%%> tag, but for program portability, it is not recommended to open

Max_execution_time = 30
Maximum running time per foot code

Memory_limit = 8388608
Maximum memory available for each foot code (max 8MB)

Error_reporting
Set the level of error reporting,

Bit value

Type of error

1

General error

2

General warning

4

Parser Error

7 (default value)

General error, general warning, parser error

8

Association mode Warning (a small error is reported, such as: referencing a variable that is not initialized)

;; Display_errors = Boolean;
Decide whether to output error messages with HTML on the screen

;; Log_errors = Boolean
Decide whether to record the script error information to the server's error log file, which is related to the server used

;; Track_errors = Boolean
If allowed, the last error message appears in the global variable $php_errormsg

Error_log = filename
Set file name for log script error

;; MAGIC_QUOTES_GPC = Boolean
Sets the state of the magic_quotes for the (Get/post/cookie) operation, when Magic_quotes allows, all ' (single quotes), ' (double quotes), \ (backslash) and nul are replaced with a backslash if magic_quotes_ Sybase is also allowed, a single quotation mark will be replaced with a backslash and a single quote, which is ' replaced by \ '

;; Track_vars = Boolean
If this parameter allows, the inputs to the GET, POST, and COOKIE are respectively in their respective global array $http_get_vars[], $HTTP _post_vars[], $HTTP _cookie_vars[]

Doc_root =
PHP4 directory on the server, if PHP4 is configured as Safe mode, any files other than this directory will not be available PHP4 services

Upload_tmp_dir =
Set the temporary file directory on the file at the time, to be written to any user

Upload_max_filesize = 2097152
Sets the maximum byte at time on a file

Extension_dir =./
directory where DLL files are located

Extension=php_mysql.dll
Allow MySQL function library to run

SMTP = localhost
WIN32 PHP4 DNS name or IP address of the SMTP server used to perform mail-sending functions

Sendmail_from = me@localhost.com
Email address displayed in the From: column when sending a message

Sendmail_path =
UNIX only uses this item

Debugger.host = localhost
DNS name or IP address used by the debugger

Debugger.port = 7869
Ports Used by the debugger

debugger.enabled = False
Whether to open the debugger

Uodbc.allow_persistent = On
Whether to allow persistent ODBC connections

Uodbc.max_persistent =-1
Maximum number of persistent connections per ODBC process,-1 means no limit

Uodbc.max_links =-1
Maximum number of connections per ODBC process, including persistent connections

Mysql.allow_persistent = On
Whether to allow persistent MySQL connections

Mysql.max_persistent =-1
Maximum number of persistent connections per MySQL process-1 means no limit

Mysql.max_links =-1
Maximum number of connections per MySQL process, including persistent connections

Mysql.default_port =3306
Default port for mysql_connect ()

Mysql.default_host =localhost
Default server name for mysql_connect ()

Mysql.default_user =root
Default user for mysql_connect ()

Mysql.default_password =
Password, can not fill, that is, no password

Session.save_handler = Files
Defines the file name of the session store data

Session.save_path =/tmp
Defines a file path for session storage data

Session.name = Phpsessid
Set the cookie name used by the session

Session.lifetime = 0
Set the save time for cookies sent to the browser, in seconds, 0 for the browser to close



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.