php.ini 配置详细选项(2)
配置每个处理程序最多开几个 Postgres 连接,包括持续连接。
sybase.allow_persistent boolean
配置是否允许 Sybase 数据库持续连接 (persistent connections),会影响 sybase_pconnect() 函数。
sybase.max_persistent integer
配置每个处理程序最多保持几个 Sybase 持续连接。
sybase.max_links integer
配置每个处理程序最多开几个 Sybase 连接,包括持续连接。
sybct.allow_persistent boolean
配置是否允许 Sybase-CT 数据库持续连接 (persistent connections),默认值是打开的。
sybct.max_persistent integer
配置每个处理程序最多保持几个 Sybase-CT 持续连接。默认值为 -1 表示无限制。
sybct.max_links integer
配置每个处理程序最多开几个 Sybase-CT 连接,包括持续连接。默认值为 -1,表示没有限制。
sybct.min_server_severity integer
配置 Sybase-CT 服务器错误报告的最少笔数。默认值为 10。
sybct.min_client_severity integer
配置 Sybase-CT 客户端错误报告的最少笔数。默认值为 10。
sybct.login_timeout integer
配置 Sybase-CT 最久可以使用的登入时间。默认值为 1 分钟。
sybct.timeout integer
配置 Sybase-CT 的 query 操作时间限制。默认值为无限制。
sybct.hostname string
配置 Sybase-CT 可连接机器名称。默认值不设限
ifx.allow_persistent boolean
配置是否允许 Informix 数据库持续连接 (persistent connections),会影响 ifx_pconnect() 函数。
ifx.max_persistent integer
配置每个处理程序最多保持几个 Informix 持续连接。
ifx.max_links integer
配置每个处理程序最多开几个 Informix 连接,包括持续连接。
ifx.default_host string
配置 Informix 默认连接的服务器名称,供 ifx_connect() 或 ifx_pconnect() 函数使用。
ifx.default_user string
配置 Informix 默认连接的用户帐号,供 ifx_connect() 或 ifx_pconnect() 函数使用。
ifx.default_password string
配置 Informix 默认连接的用户密码,供 ifx_connect() 或 ifx_pconnect() 函数使用。
ifx.blobinfile boolean
配置 Informix 长位类模式,0 表在内存;1 表在文件中。亦可以在 PHP 程序中使用 ifx_blobinfile_mode() 函数来修改。
ifx.textasvarchar boolean
配置 Informix 文字模式默认值,0 表返回 blob 的代码;1 表返回 varchar 字符串。亦可在 PHP 程序中使用 ifx_textasvarchar() 函数来修改配置。
ifx.byteasvarchar boolean
配置 Informix 位组模式默认值,0 表返回 blob 的代码;1 表返回 varchar 字符串。亦可在 PHP 程序中使用 ifx_byteasvarchar() 来修改配置。
ifx.charasvarchar boolean
配置 Informix 返回字符串的字尾空格是否要自动去除。
ifx.nullformat boolean
配置 NULL 字段的返回方式,true 表示返回字符串 NULL,false 表格返回字符串 ""。亦可在 PHP 程序中以 ifx_nullformat() 修改。
bcmath.scale integer
配置 BC 高精确度函数库的小数点位数。
browscap string
配置浏览器的开文件能力名。
uodbc.default_db string
配置 ODBC 默认连接的数据库名称,供 odbc_connect() 或 odbc_pconnect() 函数使用。
uodbc.default_user string
配置 ODBC 默认连接的用户帐号,供 odbc_connect() 或 odbc_pconnect() 函数使用。
uodbc.default_pw string
配置 ODBC 默认连接的用户密码,供 odbc_connect() 或 odbc_pconnect() 函数使用。
uodbc.allow_persistent boolean
配置是否允许 ODBC 数据库持续连接 (persistent connections),会影响 odbc_pconnect() 函数。
uodbc.max_persistent integer
配置每个处理程序最多保持几个 ODBC 持续连接。
uodbc.max_links integer
配置每个处理程序最多开几个 ODBC 连接,包括持续连接。
以下和 session 有关的配置值,都在 PHP 4.x 以上的版本方支持。在 php.ini 的配置文件中。
session.save_handler
定义 session 储存资料的文件名称。默认值为 files。
session.save_path
定义 session 储存资料的文件路径。默认值为 /tmp。
session.name
配置 session 所使用的 cookie 名称。默认值为 PHPSESSID。
session.auto_start
配置 session 是否自动打开。默认值为 0 (否)。
session.lifetime
配置 cookie 送到浏览器后的保存时间,单位为秒。默认值为 0,表示直到浏览器关闭。
session.serialize_handler
定义连续/解连续资料的标头,本功能只有 WDDX 模块或 PHP 内部使用。默认值为 php。
session.gc_probability
配置每笔要求回应时的废物蒐集 (gc, garbage collection) 处理机率。默认值为 1。
session.gc_maxlifetime
配置废物被清除前的存活秒数。
session.extern_referer_check
决定参照到客户端的 Session 代码是否要删除。有时在安全或其它考虑时,会配置不删除。默认值为 0。
session.entropy_file
配置 session 代码建立时,使用外部高熵值资源或文件来建立,例如 UNIX 系统上的 /dev/random 或 /dev/urandom。
session.entropy_length
配置 session 从高熵值资源读取的位组数。默认值为 0。
session.use_cookies
配置是否要将 session 变成 cookie 存在用户端。默认值为 1,表是打开本功能。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The problem was found in the springboot project production session-out timeout. The problem is described below: In the test environment, the session-out was configured by changing the application.yaml. After setting different times to verify that the session-out configuration took effect, the expiration time was directly set to 8 hours for release. Arrived in production environment. However, I received feedback from customers at noon that the project expiration time was set to be short. If no operation is performed for half an hour, the session will expire and require repeated logins. Solve the problem of handling the development environment: the springboot project has built-in Tomcat, so the session-out configured in application.yaml in the project is effective. Production environment: Production environment release is

Session failure is usually caused by the session lifetime expiration or server shutdown. The solutions: 1. Extend the lifetime of the session; 2. Use persistent storage; 3. Use cookies; 4. Update the session asynchronously; 5. Use session management middleware.

The differences between Oracle and Sybase are: 1. SQL syntax is inconsistent; 2. The post-processing mechanism for over-long fields is different. Oracle does not have an automatic truncation mechanism when inputting over-long characters, while Sybase’s processing mechanism is automatic truncation; 3. Chinese field byte length Inconsistent, 1 Chinese character in the Sybase database occupies 2 bytes, and 1 Chinese character in the Oracle database occupies 3 bytes; 4. Character type conversion is different; 5. Null value reading results are inconsistent; 6. Query statement output default sorting is inconsistent; 7 , The date format is inconsistent.

Solution to the cross-domain problem of PHPSession In the development of front-end and back-end separation, cross-domain requests have become the norm. When dealing with cross-domain issues, we usually involve the use and management of sessions. However, due to browser origin policy restrictions, sessions cannot be shared by default across domains. In order to solve this problem, we need to use some techniques and methods to achieve cross-domain sharing of sessions. 1. The most common use of cookies to share sessions across domains

Solution to the problem that the php session disappears after refreshing: 1. Open the session through "session_start();"; 2. Write all public configurations in a php file; 3. The variable name cannot be the same as the array subscript; 4. In Just check the storage path of the session data in phpinfo and check whether the sessio in the file directory is saved successfully.

The default expiration time of session PHP is 1440 seconds, which is 24 minutes, which means that if the client does not refresh for more than 24 minutes, the current session will expire; if the user closes the browser, the session will end and the Session will no longer exist.

Problem: Today, we encountered a setting timeout problem in our project, and changes to SpringBoot2’s application.properties never took effect. Solution: The server.* properties are used to control the embedded container used by SpringBoot. SpringBoot will create an instance of the servlet container using one of the ServletWebServerFactory instances. These classes use server.* properties to configure the controlled servlet container (tomcat, jetty, etc.). When the application is deployed as a war file to a Tomcat instance, the server.* properties do not apply. They do not apply,

When you are using a PHP session (Session), sometimes you will find that the Session can be read normally in one file, but cannot be read in another file. This may confuse you since session data is supposed to be shared across the entire application. This article will explain how to correctly read and write PHP session data in multiple files.
