3 quizzes found.

Which of the following is not a valid fopen() access mode:

  1. b
  2. x
  3. a
  4. w
  5. r+

Choose 1 answers

Which of the following is not a valid default stream wrapper for PHP 5, assuming OpenSSL is enabled?

  1. ftps://
  2. ftp://
  3. sftp://
  4. https://
  5. http://

Choose 1 answers


When opening a file in writing mode using the FTP handler, what must be done so that the file will still be written to the server in the event it previously exists?

  1. Provide a context for fopen() using stream_context_create()
  2. You must delete the file first before uploading a new file
  3. Configure this behavior in the php.ini file using the ftp.overwrite directive
  4. Open the file using the 'w+' mode

Choose 1 answers