adplus-dvertising
frame-decoration

Question

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/”

Posted under PHP

Answer: (d).open_basedir = “/home/www/”

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. 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...

Similar Questions

Discover Related MCQs

Q. The memory_limit is only applicable if ___ is enabled when you configure PHP. Fill in the blank.

Q. What is the default value of max_execution_time directive? This directive specifies how many seconds a script can execute before being terminated.

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

Q. Which one of the following statements should be used to disable just the fopen(), and file() functions?

Q. What is the return type of session_set_save_handler() function?

Q. The session_start() function must appear..

Q. Which function is used to transform PHP’s session-handler behavior into that defined by your custom handler?

Q. Which function effectively deletes all sessions that have expired?

Q. Which parameter determines whether the old session file will also be deleted when the session ID is regenerated?

Q. An attacker somehow obtains an unsuspecting user’s SID and then using it to impersonate the user in order to gain potentially sensitive information. This attack is known as..

Q. Which one of the following statements should you use to set the session username to Nachi?

Q. What will the function session_id() return is no parameter is passed?

Q. Which function is used to erase all session variables stored in the current session?

Q. Which one of the following function is used to start a session?

Q. What is the default time(in seconds) for which session data is considered valid?

Q. What is the default number of seconds that cached session pages are made available before the new pages are created?

Q. Neglecting to set which of the following cookie will result in the cookie’s domain being set to the host name of the server which generated it.

Q. If the directive session.cookie_lifetime is set to 3600, the cookie will live until..

Q. If session.use_cookie is set to 0, this results in use of..

Q. Which one of the following is the default PHP session name?