安装/配置
php 手册 | 脚本学堂 | 脚本编程 | 网站编程 | 系统管理 | 服务器配置 | 数据库管理 | Php教程 | python教程 | 正则表达式 | 批处理脚本 | Centos教程 | Linux基础教程

运行时配置

这些函数的行为受 php.ini 的影响。

Counter configuration options
Name Default Changeable Changelog
counter.reset_time COUNTER_RESET_PER_REQUEST PHP_INI_ALL  
counter.save_path "" PHP_INI_ALL  
counter.initial_value "0" PHP_INI_ALL  

有关 PHP_INI_* 常量进一步的细节与定义参见php.ini 配置选项

counter.reset_time integer
counter.reset_time tells "counter" to reset the counter used by the basic interface. It may be any of the COUNTER_RESET_* constants (see below).
counter.save_path string
Tells "counter" where to save data that has to persist between invocations of PHP (i.e. any counter that has COUNTER_RESET_NEVER or COUNTER_FLAG_SAVE). A file will be created at this path, which must be readable and writable to whatever user PHP is running as.
counter.initial_value integer
Sets the initial value of the counter used by the basic interface whenever it is reset.

安装/配置
php 手册 | 脚本学堂 | 脚本编程 | 网站编程 | 系统管理 | 服务器配置 | 数据库管理 | Php教程 | python教程 | 正则表达式 | 批处理脚本 | Centos教程 | Linux基础教程