Gen. partnerAlgotech

PHP function dl()

|
September 11, 2019

Availability in PHP 4.0

Parameters

Parameter Data type Default value Note
$library string not This 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.

Return values

bool

TRUE on success or FALSE on failure. If the functionality of loading modules is not available or has been disabled (either by setting enable_dl off or by enabling safe mode 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.

Other resources

Official dl documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.