PHP ʖ²ἯTH
º/A
dl
Description
Loads the PHP extension given by the parameter library. The library parameter is only the filename of the extension to load which also depends on your platform. For example, the sockets extension (if compiled as a shared module, not the default!) would be called sockets.so on unix platforms whereas it is called php_sockets.dll on the windows platform.
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()).
if (!extension_loaded('gd')) {if (!dl('gd.so')) {exit;}}
Windows - If not explicitly set in the php.ini, the extension is loaded from c:\php4\extensions\ by default.
whether PHP has been built with --enable-debug or not
whether PHP has been built with (experimental) ZTS (Zend Thread Safety) support or not
the current internal ZEND_MODULE_API_NO (Zend internal module API number, which is basically the date on which a major module API change happened, e.g. 20010901)
ע: dl() is not supported in multithreaded Web servers. Use the extensions statement in your php.ini when operating under such an environment. However, the CGI and CLI build are not affected!
ע: dl() is case sensitive on unix platforms.
º/A
ưµ㼯A
assert
ɏһ¼¶
extension_loaded