When setting HTTP headers from PHP, how can you make sure that your application sends the same header twice, with different values?
Which of the following is correct? (Choose 2)
1) A class can extend more than one class.
2) A class can implement more than one class.
3) A class can extend more than one interface.
4) A class can implement more than one interface.
5) An interface can extend more than one interface.
6) An interface can implement more than one interface.
What is the best way to run PHP 4 and PHP 5 side-by-side on the same Apache server?
What is the name of the PHP function used to automatically load non-yet defined classes?
Which technique should be used to speed up joins without changing their results?
An HTML form contains this form element
When this form is submitted, the following PHP code gets executed:
move_uploaded_file(
$_FILES['myFile']['tmp_name'],
'uploads/' . $_FILES['myFile']['name']);
Which of the following actions must be taken before this code may go into production?
(Choose 2)
What function can reverse the order of values in an array without the loss of key information?
Which combination of the following filtering techniques prevents cross-site scripting (XSS) vulnerabilities?
Identify the security vulnerability in the following example:
1
2 mail('feedback@example.org',
3 'Feddback',
4 'Here is my feedback.',
5 "From: {$_COOKIE['email']}");
6 ?>
Which of the following data types cannot be directly manipulated by the client?
Which of the following did not result in an output error in PHP 4 but does in PHP 5?
What is the output of the following code?
1
2 function append($str)
3 {
4 $str = $str.'append';
5 }
6
7 function prepend(&$str)
8 {
9 $str = 'prepend'.$str;
10 }
11
12 $string = 'zce';
13 append(prepend($string));
14 echo $string;
15 ?>
What XML component does the following XPath query try to match?
//foo[bar/@id=5]
What super-global should be used to access information about uploaded files via a POST request?
Is the following code piece E_STRICT compliant?
final class Testing {
var $test = 0;
public function tester() {
return "Tested!";
}}