ZCE # Week # 272

Question:

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:
  1. Set the enable_dl option to 0 in the PHP.ini file
  2. Add the dl() function in the disable_functions list in the PHP.ini configuration file.
Answer: A & C