An HTML form has two submit buttons. After submitting the form, how can you determine with PHP which button was clicked?
A. An HTML form may only have one button.
B. 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.
C. Put the two buttons in different forms, but make sure they have the same name.
D. Assign name and value attributes to each button and use $_GET or $_POST to find out which button has been clicked.
How can you determine whether a PHP script has already sent cookies to the client?
A. Use $_COOKIE
B. Use the getcookie() function
C. Use the headers_sent() function
D. Use JavaScript to send a second HTTP request
Before the headers are sent, how can you remove a previously set header?
A. Use the header_remove() function, providing the name of the header
B. Use the die() function to abort the PHP script
C. Not possible
D. Use the headers_list() function, providing the name of the header as the second argument
Which of the following can NOT be used to send a cookie from within a PHP application?
A. header()
B. $_COOKIE
C. setcookie()
D. setrawcookie()
Under what condition may HTTP headers be set from PHP if there is content echoed prior to the header function being used?
A. headers_sent() returns true
B. Output buffering is enabled
C. The client supports local buffering
D. The webserver uses preemptive mode
Which class of HTTP status codes is used for server error conditions?
A. 2XX
B. 3XX
C. 4XX
D. 5XX
Which class of HTTP status codes is used for redirections?
A. 2XX
B. 3XX
C. 4XX
D. 5XX
What content-type is required when sending an HTTP POST using JavaScript to ensure that PHP can access the data?
A. application/x-www-form-urlencoded
B. http/post
C. text/html
D. object/multipart-formdata
From your PHP application, how can you send the same header twice, but with different values?
A. Set the second argument of the header() function to false
B. PHP does that automatically
C. You may only send a particular type of header once
D. Use the header_add() function
What is the output of the following code?
$text = 'This is text';
$text1 = <<<'TEXT'
$text
TEXT;
$text2 = <<
$text1
TEXT; echo "$text2";
A. This is text
B. $text
C. $text1
D. $text2
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Zend exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 200-550 exam preparations and Zend certification application, do not hesitate to visit our Vcedump.com to find your solutions here.