What function is used to retrieve all available information about a symbolic link?
What function is used to retrieve all available information about a symbolic link?
where would the information about this file be available?
When uploading a file to a PHP script using the HTTP PUT method, where would the information
about this file be available?
What will the $array array contain at the end of this script?
What will the $array array contain at the end of this script?
<code>
1 <?php
2 function modifyArray (&$array)
3 {
4 foreach ($array as &$value)
5 {
6 $value = $value + 1;
7 }
8
9 $value = $value + 2;
10 }
11
12 $array = array (1, 2, 3);
13 modifyArray($array);
14 ?>
</code>
How can you do this?
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)
Which of the following statements is NOT true?
Which of the following statements is NOT true?
a) Class constants are public
b) Class constants are being inherited
c) Class constants can omit initialization (default to NULL)
d) Class constants can be initialized by consts
Type hinting in PHP allows the identification of the following variable types: (Choose 2)
Type hinting in PHP allows the identification of the following variable types: (Choose 2)
what will be the value of $a?
Given the following code, what will be the value of $a?
<code>
$a = array(‘a’, ‘b’);
array_push($a, array(1, 2));
</code>
Which of the following filtering techniques prevents cross-site scripting (XSS) vulnerabilities?
Which of the following filtering techniques prevents cross-site scripting (XSS) vulnerabilities?
Identify the security vulnerability in the following example: <code> 1 <?php 2 echo "Welcome, {$
Identify the security vulnerability in the following example:
<code>
1 <?php
2 echo “Welcome, {$_POST[‘name’]}.”;
3 ?>
</code>
How many times will the function counter() be executed in the following code?
How many times will the function counter() be executed in the following code?
<code>
function counter($start, &$stop)
{
if ($stop > $start)
{
return;
} counter($start–, ++$stop);
}
$start = 5;
$stop = 2;
counter($start, $stop);
</code>