Home php教程 php手册 接下面(中文php.ini)

接下面(中文php.ini)

Jun 21, 2016 am 09:13 AM
mysql nbsp session

中文

;;;;;;;;;;;;;;;;;;;;;;
;      动态扩展      ;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
; 若你希望一个扩展库自动加载,用下面的语法:
;   extension=modulename.extension
; 例如,在windows上,
; extension=msql.dll
; or 在UNIX下,
; extension=msql.so
; 注意,这只应当是模块的名字,不需要目录信息放在里面。
; 用上面的 extension_dir 指示指定扩展库的位置。


;Windows 扩展
;extension=php_nsmail.dll
extension=php_calendar.dll
;extension=php_dbase.dll
;extension=php_filepro.dll
extension=php_gd.dll
;extension=php_dbm.dll
;extension=php_mssql.dll
;extension=php_zlib.dll
;extension=php_filepro.dll
;extension=php_imap4r2.dll
;extension=php_ldap.dll
;extension=php_crypt.dll
;extension=php_msql2.dll
;extension=php_odbc.dll
; 注意, MySQL的支持现在是内建的,因此,不需要用它的dll


;;;;;;;;;;;;;;;;;;;
;     模块设定    ;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Syslog]
define_syslog_variables    = Off    ; 是否定义各种的系统日志变量
                                ; 如:$LOG_PID, $LOG_CRON, 等等。
                                ; 关掉它是个提高效率的好主意。
                                ; 运行时,你可以调用函数define_syslog_variables(),来定义这些变量


[mail function]
SMTP            =    localhost            ;仅用于win32系统
sendmail_from    =    me@localhost.com    ;仅用于win32系统
;sendmail_path    =                        ;仅用于unix, 也可支持参数(默认的是'sendmail -t -i')

[Debugger]
debugger.host    =    localhost
debugger.port    =    7869
debugger.enabled    =    False

[Logging]
; 这些配置指示用于示例的日志记录机制。
; 看 examples/README.logging 以得到更多的解释
;logging.method    = db
;logging.directory = /path/to/log/directory

[SQL]
sql.safe_mode    =    Off

[ODBC]
;uodbc.default_db        =    Not yet implemented
;uodbc.default_user        =    Not yet implemented
;uodbc.default_pw        =    Not yet implemented
uodbc.allow_persistent    =    On    ; 允许或禁止 持久连接
uodbc.check_persistent  =     On    ; 在重用前检查连接是否还可用
uodbc.max_persistent    =    -1    ; 持久连接的最大数。-1 代表无限制
uodbc.max_links            =    -1    ; 连接的最大数目(持久和非持久)。-1 代表无限制
uodbc.defaultlrl    =    4096    ; 控制 LONG 类型的字段。返回变量的字节数,0 代表通过(?)0 means passthru
uodbc.defaultbinmode    =     1    ; 控制 二进制数据。0 代表?????Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char
; 见有关 odbc_binmode 和 odbc_longreadlen 的文档以得到 uodbc.defaultlrl 和 uodbc.defaultbinmode 的解释。

[MySQL]
mysql.allow_persistent    =    On    ; 允许或禁止 持久连接
mysql.max_persistent    =    -1    ; 持久连接的最大数。-1 代表无限制
mysql.max_links            =    -1    ; 连接的最大数目(持久和非持久)。-1 代表无限制
mysql.default_port        =        ; mysql_connect() 使用的默认端口,如不设置,mysql_connect()
                                ; 将使用变量 $MYSQL_TCP_PORT,或在/etc/services 下的mysql-tcp 条目(unix),
                                ; 或在编译是定义的 MYSQL_PORT(按这样的顺序)
                                ; Win32环境,将仅检查MYSQL_PORT。
mysql.default_socket    =        ; 用于本地 MySql 连接的默认的套接字名。为空,使用 MYSQL 内建值

mysql.default_host        =        ; mysql_connect() 默认使用的主机(安全模式下无效)
mysql.default_user        =        ; mysql_connect() 默认使用的用户名(安全模式下无效)
mysql.default_password    =        ; mysql_connect() 默认使用的密码(安全模式下无效)
                                ; 注意,在这个文件下保存密码通常是一个*坏*主意
                                ; *任何*可以使用PHP访问的用户可以运行
                                ; 'echo cfg_get_var("mysql.default_password")'来显示那个密码!
                                ; 而且当然地,任何有读该文件权力的用户也能看到那个密码。

[mSQL]
msql.allow_persistent    =    On    ; 允许或禁止 持久连接
msql.max_persistent        =    -1    ; 持久连接的最大数。-1 代表无限制
msql.max_links            =    -1    ; 连接的最大数目(持久和非持久)。-1 代表无限制

[PostgresSQL]
pgsql.allow_persistent    =    On    ; 允许或禁止 持久连接
pgsql.max_persistent    =    -1    ; 持久连接的最大数。-1 代表无限制
pgsql.max_links            =    -1    ; 连接的最大数目(持久和非持久)。-1 代表无限制

[Sybase]
sybase.allow_persistent    =    On    ; 允许或禁止 持久连接
sybase.max_persistent    =    -1    ; 持久连接的最大数。-1 代表无限制
sybase.max_links        =    -1    ; 连接的最大数目(持久和非持久)。-1 代表无限制
;sybase.interface_file    =    "/usr/sybase/interfaces"
sybase.min_error_severity    =    10    ; 显示的错误的最低严重性
sybase.min_message_severity    =    10    ; 显示的消息的最低重要性
sybase.compatability_mode    = Off    ; 与旧版的PHP 3.0 兼容的模式。若打开,这将导致 PHP 自动地
                                    ; 把根据结果的 Sybase 类型赋予它们,
                                    ; 而不是把它们全当成字符串。
                                    ; 这个兼容模式不会永远留着,
                                    ; 因此,将你的代码进行需要的修改,
                                    ; 并将该项关闭。

[Sybase-CT]
sybct.allow_persistent    =    On        ; 允许或禁止 持久连接
sybct.max_persistent    =    -1        ; 持久连接的最大数。-1 代表无限制
sybct.max_links            =    -1        ; 连接的最大数目(持久和非持久)。-1 代表无限制
sybct.min_server_severity    =    10    ; minimum server message severity to display
sybct.min_client_severity    =    10    ; minimum client message severity to display

[bcmath]
bcmath.scale    =    0    ; 用于所有bcmath函数的10十进制数数字的个数number of decimal digits for all bcmath functions

[browscap]
;browscap    =    extra/browscap.ini
browscap    =    C:\WIN\SYSTEM\inetsrv\browscap.ini
[Informix]
ifx.default_host        =        ; ifx_connect() 默认使用的主机(安全模式下无效)
ifx.default_user        =        ; ifx_connect() 默认使用的用户名(安全模式下无效)
ifx.default_password        =        ; ifx_connect() 默认使用的密码(安全模式下无效)
ifx.allow_persistent        =    On    ; 允许或禁止 持久连接
ifx.max_persistent        =    -1    ; 持久连接的最大数。-1 代表无限制
ifx.max_links            =    -1    ; 连接的最大数目(持久和非持久)。-1 代表无限制
ifx.textasvarchar        =    0    ; 若打开,select 状态符返回一个 ‘text blob’字段的内容,而不是它的id
ifx.byteasvarchar        =    0    ; 若打开,select 状态符返回一个 ‘byte blob’字段的内容,而不是它的id
ifx.charasvarchar        =    0    ; 追踪从固定长度的字符列里剥离的空格。
                        ; 可能对 Informix SE 用户有效。
ifx.blobinfile            =    0    ; 若打开,text和byte blobs 的内容被导出到一个文件
                        ; 而不是保存到内存。
ifx.nullformat            =    0    ; NULL(空)被作为空字段返回,除非,这里被设为1。
                        ; 这种情况下(为1),NULL作为字串NULL返回。



[Session]
session.save_handler      = files   ; 用于保存/取回数据的控制方式
session.save_path         = C:\win\temp    ; 在 save_handler 设为文件时传给控制器的参数,
                                    ; 这是数据文件将保存的路径。
session.use_cookies       = 1       ; 是否使用cookies
session.name              = PHPSESSID  
                                    ; 用在cookie里的session的名字
session.auto_start        = 0       ; 在请求启动时初始化session
session.cookie_lifetime   = 0       ; 为按秒记的cookie的保存时间,
                                    ; 或为0时,直到浏览器被重启
session.cookie_path       = /       ; cookie的有效路径
session.cookie_domain     =         ; cookie的有效域
session.serialize_handler = php     ; 用于连接数据的控制器
                                    ; php是 PHP 的标准控制器。
session.gc_probability    = 1       ; 按百分比的'garbage collection(碎片整理)'进程
                                    ; 在每次 session 初始化的时候开始的可能性。
session.gc_maxlifetime    = 1440    ; 在这里数字所指的秒数后,保存的数据将被视为
                                    ; '碎片(garbage)'并由gc 进程清理掉。
session.referer_check     =         ; 检查 HTTP引用以使额外包含于URLs中的ids无效
session.entropy_length    = 0       ; 从文件中读取多少字节
session.entropy_file      =         ; 指定这里建立 session id
; session.entropy_length    = 16
; session.entropy_file      = /dev/urandom
session.cache_limiter     = nocache ; 设为{nocache,private,public},以决定 HTTP 的
                                    ; 缓存问题
session.cache_expire      = 180     ; 文档在 n 分钟后过时

[MSSQL]
;extension=php_mssql.dll
mssql.allow_persistent        =    On    ; 允许或禁止 持久连接
mssql.max_persistent        =    -1    ; 持久连接的最大数。-1 代表无限制
mssql.max_links                =    -1    ; 连接的最大数目(持久和非持久)。-1 代表无限制
mssql.min_error_severity    =    10    ; 显示的错误的最低严重性
mssql.min_message_severity    =    10    ; 显示的消息的最低重要性
mssql.compatability_mode    = Off    ; 与旧版的PHP 3.0 兼容的模式。

[Assertion]
; ?????
;assert.active                =    On    ; ?assert(expr); active by default
;assert.warning                =    On    ; issue a PHP warning for each failed assertion.
;assert.bail                =    Off    ; don't bail out by default.
;assert.callback            =    0    ; user-function to be called if an assertion fails.
;assert.quiet_eval            =    0    ; eval the expression with current error_reporting(). set to true if you want error_reporting(0) around the eval().

[Ingres II]
ii.allow_persistent            =    On    ; 允许或禁止 持久连接
ii.max_persistent            =    -1    ; 持久连接的最大数。-1 代表无限制
ii.max_links                =  -1    ; 连接的最大数目(持久和非持久)。-1 代表无限制
ii.default_database            =        ; 默认 database (format : [node_id::]dbname[/srv_class]
ii.default_user                =        ; 默认 user
ii.default_password            =        ; 默认 password

[Verisign Payflow Pro]
pfpro.defaulthost            =    "test.signio.com"    ; 默认的 Signio 服务器
pfpro.defaultport            =    443    ; 连接的默认端口
pfpro.defaulttimeout        =    30    ; 按秒计的默认超时时间

; pfpro.proxyaddress        =        ; 默认的代理的 IP 地址(如果需要)
; pfpro.proxyport            =        ; 默认的代理的端口
; pfpro.proxylogon            =        ; 默认的代理的登录(logon 用户名)
; pfpro.proxypassword        =        ; 默认的代理的密码

; Local Variables:
; tab-width: 4
; End:



Statement of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP's big data structure processing skills PHP's big data structure processing skills May 08, 2024 am 10:24 AM

Big data structure processing skills: Chunking: Break down the data set and process it in chunks to reduce memory consumption. Generator: Generate data items one by one without loading the entire data set, suitable for unlimited data sets. Streaming: Read files or query results line by line, suitable for large files or remote data. External storage: For very large data sets, store the data in a database or NoSQL.

How to use MySQL backup and restore in PHP? How to use MySQL backup and restore in PHP? Jun 03, 2024 pm 12:19 PM

Backing up and restoring a MySQL database in PHP can be achieved by following these steps: Back up the database: Use the mysqldump command to dump the database into a SQL file. Restore database: Use the mysql command to restore the database from SQL files.

How to optimize MySQL query performance in PHP? How to optimize MySQL query performance in PHP? Jun 03, 2024 pm 08:11 PM

MySQL query performance can be optimized by building indexes that reduce lookup time from linear complexity to logarithmic complexity. Use PreparedStatements to prevent SQL injection and improve query performance. Limit query results and reduce the amount of data processed by the server. Optimize join queries, including using appropriate join types, creating indexes, and considering using subqueries. Analyze queries to identify bottlenecks; use caching to reduce database load; optimize PHP code to minimize overhead.

How to insert data into a MySQL table using PHP? How to insert data into a MySQL table using PHP? Jun 02, 2024 pm 02:26 PM

How to insert data into MySQL table? Connect to the database: Use mysqli to establish a connection to the database. Prepare the SQL query: Write an INSERT statement to specify the columns and values ​​to be inserted. Execute query: Use the query() method to execute the insertion query. If successful, a confirmation message will be output.

How to create a MySQL table using PHP? How to create a MySQL table using PHP? Jun 04, 2024 pm 01:57 PM

Creating a MySQL table using PHP requires the following steps: Connect to the database. Create the database if it does not exist. Select a database. Create table. Execute the query. Close the connection.

How to use MySQL stored procedures in PHP? How to use MySQL stored procedures in PHP? Jun 02, 2024 pm 02:13 PM

To use MySQL stored procedures in PHP: Use PDO or the MySQLi extension to connect to a MySQL database. Prepare the statement to call the stored procedure. Execute the stored procedure. Process the result set (if the stored procedure returns results). Close the database connection.

How to fix mysql_native_password not loaded errors on MySQL 8.4 How to fix mysql_native_password not loaded errors on MySQL 8.4 Dec 09, 2024 am 11:42 AM

One of the major changes introduced in MySQL 8.4 (the latest LTS release as of 2024) is that the "MySQL Native Password" plugin is no longer enabled by default. Further, MySQL 9.0 removes this plugin completely. This change affects PHP and other app

The difference between oracle database and mysql The difference between oracle database and mysql May 10, 2024 am 01:54 AM

Oracle database and MySQL are both databases based on the relational model, but Oracle is superior in terms of compatibility, scalability, data types and security; while MySQL focuses on speed and flexibility and is more suitable for small to medium-sized data sets. . ① Oracle provides a wide range of data types, ② provides advanced security features, ③ is suitable for enterprise-level applications; ① MySQL supports NoSQL data types, ② has fewer security measures, and ③ is suitable for small to medium-sized applications.

See all articles