Zend 200-500 - Zend PHP 5 Certification
What is the error in the following declaration of a static class method?
1
2 class car {
3 static $speeds = array(
4 'fast',
5 'slow',
6 'medium',
7 );
8
9 static function getSpeeds()
10 {
11 return $this->speeds;
12 }
13 }
14 ?>
You work for a shared hosting provider, and your supervisor asks you to disable user scripts to dynamically load PHP extensions using the dl() function. How can you do this? (Choose 2)
Identify the security vulnerability in the following example:
1
2 echo "Welcome, {$_POST['name']}.";
3 ?>
What is the return value of the following code?
strpos("me myself and I", "m", 2)
What is the function of backtick (`) characters in PHP?
Which of the following data types cannot be directly manipulated by the client?
Which of the following statements about PHP is true? (Choose 3)
a) A final class can be derived.
b) A final class may be instantiated.
c) A class with a final function may be derived.
d) Static functions can be final.
e) Properties can be final.
Which of the following functions are used to escape data within the context of HTML?
(Choose 2)
What PHP function can be used to remove a local file?
Which of the following functions can help prevent session fixation vulnerabilities?