1.
In PHP, which of the following statements about running the COM object from a remote server is correct?
2.
Which of the following statements about the PHP4 and PHP5 is correct?
3.
In PHP, which of the following statements is used to concatenate the string?
4.
In PHP, if the expire parameter of the setCookie() function is not specified, which of the following statements is correct?
5.
Which of the following functions is used to check the size of a file in the PHP functions?
6.
The ________ is a valid data type in PHP.
7.
When you write a cookie with an expiration date to a specific machine, the cookie is not set. This technique usually works with other computers.
The browser on the client's machine seems to otherwise work fine on most other websites, however, it is not working on this particular machine. You have checked that the time on the machine corresponds to the time on the server within a reasonable margin by verifying the date that is reported by the operating system on the client's machine.

Which of the following is the reason for this problem?
8.
In PHP, a race condition is prevented by ___________________________________.
9.
When the following PHP script is called directly from a browser, it is displayed ________________________________.
<?php
header ("Content-type: image/jpeg");
?>

<?php
readfile ("image.jpg");
?>
10.
Assuming that the $action and $data variables are entered by a user and the register_globals directive is enabled. Is the following PHP code acceptable from a security standpoint:
<?php
if (isUserAdmin()) {
    $isAdmin = true;
}
$data = validate_and_return_input($data);
switch ($action) {
    case 'add':
        addSomething($data);
        break;
    case 'delete':
        if ($isAdmin) {
            deleteSomething($data);
        }
        break;
    case 'edit':
        if ($isAdmin) {
            editSomething($data);
        }
        break;
    default:
        print "Bad Action.";
}
?>