The dl() function is used to load PHP extensions on the sever at runtime. However, you want to disable it due to some security issue. Which of the following actions will perform to accomplish the task?
A. Add the dl() function in the disable_functions list in the PHP.ini configuration file.
B. Add the dl() function in the blocked_functions() list in the PHP.ini file
C. Set the enable_dl option to 0 in the PHP.ini file
D. Set the enable_dl option to 1 in the PHP.ini file
Explanation:
The dl() function is used to load PHP extensions on the server at runtime. However, it can be the cause of some security issue.
To disable this function, you can perform the following actions:
- Set the enable_dl option to 0 in the PHP.ini file
- Add the dl() function in the disable_functions list in the PHP.ini configuration file.
Related Functions:
Predefined variables:
PHP provides a large number of predefined variables to all scripts. The variables represent everything from external variables to built-in environment variables, last error messages to last retrieved headers.
List of predefined variables of PHP