|
dl(PHP 4, PHP 5) dl — Loads a PHP extension at runtime Описание
bool 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()). Внимание
This function has been removed from some SAPIs in PHP 5.3. Список параметров
Возвращаемые значенияВозвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки. If the functionality of loading modules is not available or has been disabled (either by setting enable_dl off 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. Примеры
Пример #1 dl() examples
<?php Список изменений
Примечания
Смотрите также
|
|||||