which of the following would NOT achieve this goal?
SimpleXML provides the ability to iterate over items in an XML document, as well as access
items within it as if they were object properties. When creating your own classes to access
data, implementing which of the following would NOT achieve this goal?
Which of the following is used to find all PHP files under a certain directory?
Which of the following is used to find all PHP files under a certain directory?
Which PHP function is used to validate whether the contents of $_FILES[‘name’][‘tmp_nameR
Which PHP function is used to validate whether the contents of
$_FILES[‘name’][‘tmp_name’] have really been uploaded via HTTP?
Which PHP function is used to validate whether the contents of $_FILES[‘name’][‘tmp_nameR
Which PHP function is used to validate whether the contents of
$_FILES[‘name’][‘tmp_name’] have really been uploaded via HTTP, and also save the
contents into another folder?
What is the name of the key for the element in $_FILES[‘name’] that contains the provisional name
What is the name of the key for the element in $_FILES[‘name’] that contains the provisional
name of the uploaded file?
What is the name of the key in $_FILES[‘name’] that contains the number of bytes of the uploaded f
What is the name of the key in $_FILES[‘name’] that contains the number of bytes of the
uploaded file?
What information can be used to reliably determine the type of an uploaded file?
What information can be used to reliably determine the type of an uploaded file?
Which MIME type is always sent by a client if a JPEG file is uploaded via HTTP?
Which MIME type is always sent by a client if a JPEG file is uploaded via HTTP?
Which of the following configurations could be responsible for this outcome?
Your application uses PHP to accept and process file uploads. It fails to upload a file that is
5 MB in size, although upload_max_filesize is set to “10M”. Which of the following
configurations could be responsible for this outcome? (Choose 2)
What is the outcome?
Consider the following table data and PHP code. What is the outcome? Table data (table
name “users” with primary key “id”): id name email ——- ———– ——————- 1 anna
alpha@example.com 2 betty beta@example.org 3 clara gamma@example.net 5 sue
sigma@example.info PHP code (assume the PDO connection is correctly established):
$dsn = ‘mysql:host=localhost;dbname=exam’; $user = ‘username’; $pass = ‘********’; $pdo =
new PDO($dsn, $user, $pass); $cmd = “SELECT * FROM users WHERE id = :id”; $stmt =
$pdo->prepare($cmd); $id = 3; $stmt->bindParam(‘id’, $id); $stmt->execute();
$stmt->bindColumn(3, $result); $row = $stmt->fetch(PDO::FETCH_BOUND);