Vidyalelo
PHP · Q2

Website Security

Programming · PHP · question 2

Q2

Which one of the following statements should be used to disable the use of two classes administrator and janitor?

A.
disable_classes = “administrator, janitor”
Answer
B.
disable_classes = class administrator, class janitor
C.
disable_classes = class “administrator”, class “janitor”
D.
disable_class = class “administrator”, class “janitor”

Answer: Option A

Solution

Answer: Option A
Solution:
There may be classes inside the libraries that you’d rather not make available. You can prevent the use of these classes with the disable_classes directive.