Which requirements need NOT be met so that file uploads work?
Which requirements need NOT be met so that file uploads work?
Which of the following keywords is not new in PHP 5?
Which of the following keywords is not new in PHP 5?
Which of these protocols are NOT governed by the W3C in their latest versions?
Which of these protocols are NOT governed by the W3C in their latest versions? (Choose 2)
Which elements does the array returned by the function pathinfo() contain?
Which elements does the array returned by the function pathinfo() contain?
What is the output of the following code?
What is the output of the following code?
$a = 1;
++$a;
$a*=$a;
echo$a–;
what is the value of $_POST[‘list’]?
The following form is loaded in a recent browser and submitted, with the second list element selected:
<code>
<form method=”post”>
<select name=”list”>
<option>one</option>
<option>two</option>
<option>three</option>
</select>
</form>
</code>
In the server-side PHP code to deal with the form data, what is the value of $_POST[‘list’]?
What is the output of the following script? <code> 1 <?
What is the output of the following script?
<code>
1 <?php
2 function fibonacci ($x1, $x2)
3 {
4 return $x1 + $x2;
5 }
6
7 $x1 = 0;
8 $x2 = 1;
9
10 for ($i = 0; $i < 10; $i++) {
11 echo fibonacci($x1, $x2) . ‘,’;
12 }
13 ?>
</code>
What will be the value of $b after running the following code?
What will be the value of $b after running the following code?
<code>
$a = array(‘c’, ‘b’, ‘a’);
$b = (array)$a;
</code>
How can you redirect a client to another page using PHP?
How can you redirect a client to another page using PHP?
What is the output of the following code? <code> 1 <?php 2 $a = ‘a’; $b = ‘b’
What is the output of the following code?
<code>
1 <?php
2 $a = ‘a’; $b = ‘b’;
3 echo isset($c) ? $a.$b.$c : ($c = ‘c’).’d’;
4 ?>
</code>