In the function setcookie() what does the 3rd parameter specify?
What function can be used to retrieve an array of current options for a stream context?
Which one of the following technologies was not built into PHP before version 5?
What is the output of the following code?
try {
class MyException extends Exception {};
try {
throw new MyException;
}
catch (Exception $e) {
echo "1:";
throw $e;
}c
atch (MyException $e) {
echo "2:";
throw $e;
}}
catch (Exception $e) {
echo get_class($e);
}
What is the output of the following code?
$a = 1;
++$a;
$a*=$a;
echo $a--;
Identify the security vulnerability in the following example:
1 <?php
2 echo "Welcome, {$_POST['name']}.";
3 ?>
What is the difference between isset() and other is_*() functions (is_alpha(), is_number(), etc.)?
What will the following function call return?
strstr('http://example.com/test/file.php ', '/');
The following form is loaded in a recent browser and submitted, with the second list element selected:
<form method="post">
In the server-side PHP code to deal with the form data, what is the value of $_POST ['list']?
Which of the following statements about exceptions are correct? (Choose 2)