|
PHP5中文手册
dl(PHP 4, PHP 5) dl — Loads a PHP extension at runtime 说明
int dl
( string $library
)
Loads the PHP extension given by the parameter library . Use extension_loaded() to test whether a given extension is already available or not. This works on both built-in extensions and dynamically loaded ones (either through php.ini or dl()). 参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 If the functionality of loading modules is not available (see Note) or has been disabled (either by turning it off enable_dl or by enabling 安全模式 in php.ini) an E_ERROR is emitted and execution is stopped. If dl() fails because the specified library couldn't be loaded, in addition to FALSE an E_WARNING message is emitted. 范例
Example#1 dl() examples
<?php 注释
|