2 quizzes found.

Which php.ini directive should be disabled to prevent the execution of a remote PHP script via an include or require construct?

  1. You cannot disable remote PHP script execution
  2. curl.enabled
  3. allow_remote_url
  4. allow_url_fopen
  5. allow_require

Choose 1 answers

By default, PHP stores session data in ________________.

  1. The filesystem
  2. A database
  3. Virtual memory
  4. Shared memory
  5. None of the above

Choose 1 answers

The filesystem (Answer 1). By default, PHP stores all session information in the /tmp folder; users of operating systems where this folder doesn’t exist (such as Windows) must change the default value of the session.save_path php.ini setting to a directory appropriate for their setup (e.g.: C:\Temp).