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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks 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)

Hot Topics

Java Tutorial
1676
14
PHP Tutorial
1278
29
C# Tutorial
1257
24
Laravel Introduction Example Laravel Introduction Example Apr 18, 2025 pm 12:45 PM

Laravel is a PHP framework for easy building of web applications. It provides a range of powerful features including: Installation: Install the Laravel CLI globally with Composer and create applications in the project directory. Routing: Define the relationship between the URL and the handler in routes/web.php. View: Create a view in resources/views to render the application's interface. Database Integration: Provides out-of-the-box integration with databases such as MySQL and uses migration to create and modify tables. Model and Controller: The model represents the database entity and the controller processes HTTP requests.

MySQL and phpMyAdmin: Core Features and Functions MySQL and phpMyAdmin: Core Features and Functions Apr 22, 2025 am 12:12 AM

MySQL and phpMyAdmin are powerful database management tools. 1) MySQL is used to create databases and tables, and to execute DML and SQL queries. 2) phpMyAdmin provides an intuitive interface for database management, table structure management, data operations and user permission management.

MySQL vs. Other Programming Languages: A Comparison MySQL vs. Other Programming Languages: A Comparison Apr 19, 2025 am 12:22 AM

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages ​​such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages ​​have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

Laravel framework installation method Laravel framework installation method Apr 18, 2025 pm 12:54 PM

Article summary: This article provides detailed step-by-step instructions to guide readers on how to easily install the Laravel framework. Laravel is a powerful PHP framework that speeds up the development process of web applications. This tutorial covers the installation process from system requirements to configuring databases and setting up routing. By following these steps, readers can quickly and efficiently lay a solid foundation for their Laravel project.

Explain the purpose of foreign keys in MySQL. Explain the purpose of foreign keys in MySQL. Apr 25, 2025 am 12:17 AM

In MySQL, the function of foreign keys is to establish the relationship between tables and ensure the consistency and integrity of the data. Foreign keys maintain the effectiveness of data through reference integrity checks and cascading operations. Pay attention to performance optimization and avoid common errors when using them.

Compare and contrast MySQL and MariaDB. Compare and contrast MySQL and MariaDB. Apr 26, 2025 am 12:08 AM

The main difference between MySQL and MariaDB is performance, functionality and license: 1. MySQL is developed by Oracle, and MariaDB is its fork. 2. MariaDB may perform better in high load environments. 3.MariaDB provides more storage engines and functions. 4.MySQL adopts a dual license, and MariaDB is completely open source. The existing infrastructure, performance requirements, functional requirements and license costs should be taken into account when choosing.

MySQL: The Database, phpMyAdmin: The Management Interface MySQL: The Database, phpMyAdmin: The Management Interface Apr 29, 2025 am 12:44 AM

MySQL and phpMyAdmin can be effectively managed through the following steps: 1. Create and delete database: Just click in phpMyAdmin to complete. 2. Manage tables: You can create tables, modify structures, and add indexes. 3. Data operation: Supports inserting, updating, deleting data and executing SQL queries. 4. Import and export data: Supports SQL, CSV, XML and other formats. 5. Optimization and monitoring: Use the OPTIMIZETABLE command to optimize tables and use query analyzers and monitoring tools to solve performance problems.

SQL vs. MySQL: Clarifying the Relationship Between the Two SQL vs. MySQL: Clarifying the Relationship Between the Two Apr 24, 2025 am 12:02 AM

SQL is a standard language for managing relational databases, while MySQL is a database management system that uses SQL. SQL defines ways to interact with a database, including CRUD operations, while MySQL implements the SQL standard and provides additional features such as stored procedures and triggers.

See all articles