}
bool dl( string
$library
) —
获取 PHP
配置选项的值 载入指定的 PHP 扩展
代码如下:
if
(!
extension_loaded
('sqlite')){
//测试指定的扩展是否已经激活
$prefix
= (PHP_SHLIB_SUFFIX === 'dll') ? 'php_' : '';
dl(
$prefix
. 'sqlite.' . PHP_SHLIB_SUFFIX);
}
int gc_collect_cycles() — 强制收集所有现存的垃圾循环周期
void gc_disable ( void ) — 停用循环引用收集器
void gc_enable ( void ) — 激活循环引用收集器
bool gc_enabled ( void ) — 返回循环引用计数器的状态
string get_cfg_var ( string
$option
) —
获取 PHP
配置选项的值获取 PHP 配置选项的值
string get_current_user ( void )—
获取当前 PHP 脚本所有者名称
array
get_defined_constants ([ bool
$categorize
= false ] )— 返回所有常量的关联数组
array
get_extension_funcs ( string
$module_name
)— 返回模块函数名称的数组
代码如下:
print_r(get_extension_funcs("xml"));
string get_include_path ( void ) —
获取当前的 include_path 配置选项
array
get_included_files ( void )—
返回被
include
和
require
文件名的
array
代码如下:
include
'test1.php';
include_once
'test2.php';
require
'test3.php';
require_once
'test4.php';
$included_files
= get_included_files();
foreach
(
$included_files
as
$filename
){
echo
"$filename\n";
}
array
get_loaded_extensions ([ bool
$zend_extensions
= false ] )— 返回所有编译并加载模块名
的
array
bool get_magic_quotes_gpc ( void )—
获取当前 magic_quotes_gpc 的配置选项设置
bool get_magic_quotes_runtime ( void ) —
获取当前 magic_quotes_runtime 配置选项的激活
状态
string
getenv
( string
$varname
) — 获取一个环境变量的值
代码如下: