Zend
200-710 · Question #151
You work for a shared hosting provider, and your supervisor asks you to disable user scripts to dynamically load PHP extensions using the dl() function. How can you do this? (Choose 2)
The correct answer is A. Set enable_dl to Off in the server's php.ini configuration file. B. Add dl to the current value of disable_functions in the server's php.ini configuration file. See the full explanation below for the reasoning.
Security
Question
You work for a shared hosting provider, and your supervisor asks you to disable user scripts to dynamically load PHP extensions using the dl() function. How can you do this? (Choose 2)
Options
- ASet enable_dl to Off in the server's php.ini configuration file.
- BAdd dl to the current value of disable_functions in the server's php.ini configuration file.
- CAdd dl to the current value of disable_classes in the server's php.ini configuration file.
- DWrite a custom function called dl() , save it under the name prepend.inc and then set the auto_prepend_file directive to prepend.inc in php.ini.
How the community answered
(27 responses)- A85% (23)
- C4% (1)
- D11% (3)
Topics
#dl() function#disable_functions#php.ini#shared hosting security
Community Discussion
No community discussion yet for this question.