Free 200-550 Exam Braindumps
Zend Certified PHP Engineer Questions 76–80 (page: 17)

Updated On: 9-Feb-2026

Which of the following can NOT be used to send a cookie from within a PHP application?

  1. header()
  2. $_COOKIE
  3. setcookie()
  4. setrawcookie()

Answer(s): B



Under what condition may HTTP headers be set from PHP if there is content echoed prior to the header function being used?

  1. headers_sent() returns true
  2. Output buffering is enabled
  3. The client supports local buffering
  4. The webserver uses preemptive mode

Answer(s): B



Before the headers are sent, how can you remove a previously set header?

  1. Use the header_remove() function, providing the name of the header
  2. Use the die() function to abort the PHP script
  3. Not possible
  4. Use the headers_list() function, providing the name of the header as the second argument

Answer(s): A



How can you determine whether a PHP script has already sent cookies to the client?

  1. Use $_COOKIE
  2. Use the getcookie() function
  3. Use the headers_sent() function
  4. Use JavaScript to send a second HTTP request

Answer(s): C



An HTML form has two submit buttons. After submitting the form, how can you determine with PHP which button was clicked?

  1. An HTML form may only have one button.
  2. You cannot determine this with PHP only. You must use JavaScript to add a value to the URL
    depending on which button has been clicked.
  3. Put the two buttons in different forms, but make sure they have the same name.
  4. Assign name and value attributes to each button and use $_GET or $_POST to find out which button has been clicked.

Answer(s): D



Viewing page 17 of 46
Viewing questions 81 - 85 out of 223 questions


Post your Comments and Discuss Zend 200-550 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!