2 quizzes found.

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

http://php.net/manual/en/function.stream-context-create.php

Which of the following strings are not valid modes for the fopen() function?

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

Choose 1 answers