Is the following code vulnerable to SQL Injection ($mysqli is an instance of the MySQLi class)?
$age = $mysqli->real_escape_string($_GET['age']);
$name = $mysqli->real_escape_string($_GET['name']);
$query = "SELECT * FROM `table` WHERE name LIKE '$name' AND age = $age";
$results = $mysqli->query($query);
A. No, the code is fully protected from SQL Injection.What is the result of the following code?
define('PI', 3.14);
class T
{
const PI = PI;
}
class Math
{
const PI = T::PI;
}
echo Math::PI;
A. Parse errorBefore the headers are sent, how can you remove a previously set header?
A. Use the header_remove() function, providing the name of the headerGiven a php.ini setting of
default_charset = utf-8
what will the following code print in the browser?
header('Content-Type: text/html; charset=iso-8859-1');
echo 'and#9986;and#10004;and#10013;';
A. Three Unicode characters, or unreadable text, depending on the browserCORRECT TEXT
Which PHP function sets a cookie whose value does not get URL encoded when sending it to the browser?
CORRECT TEXT
What is the name of the key in $_FILES['name'] that contains the number of bytes of the uploaded file?
The constructs for(), foreach(), and each() can all be used to iterate an object if the object...
A. implements ArrayAccessWhich of the following techniques ensures that a value submitted in a form can only be yes or no ?
A. Use a select list that only lets the user choose between yes and no .What is the length of a string returned by: md5(rand(), TRUE);
A. Depends on the value returned by rand() functionHow do you allow the caller to submit a variable number of arguments to a function?
A. Using a prototype like function test(... $parameters).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-710 exam preparations and Zend certification application, do not hesitate to visit our Vcedump.com to find your solutions here.