Free 200-550 Exam Braindumps (page: 21)

Page 20 of 56

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






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

200-550 Discussions & Posts