Vidyalelo
PHP · Q5

Website Security

Programming · PHP · question 5

Q5

Suppose all web material is located within the directory /home/www. To prevent users from viewing and manipulating files such as /etc/password, which one of the following statements should you use?

A.
open_dir = “/home/www/”
B.
open_dir = /home/www/
C.
open_basedir = /home/www/
D.
open_basedir = “/home/www/”
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board