When this form is submitted, the following PHP code gets executed: 1 <?
An HTML form contains this form element:
<code>
<input type=”file” name=”myFile” />
When this form is submitted, the following PHP code gets executed:
1 <?php
2 move_uploaded_file(
3 $_FILES[‘myFile’][‘tmp_name’],
4 ‘uploads/’ . $_FILES[‘myFile’][‘name’]);
5 ?>
</code>
Which of the following actions must be taken before this code may go into production?
(Choose 2)
What is "instanceof" an example of:
What is “instanceof” an example of:
Which of the following techniques ensures that a value submitted in a form can only be yes or no?
Which of the following techniques ensures that a value submitted in a form can only be yes or no?
In a typical web application the most used database action is…
In a typical web application the most used database action is…
which of the following actions?
The function mysqli_affected_rows() can be used to perform which of the following actions?
(Choose 2)
What does the chown() function do?
What does the chown() function do?
When a transaction reports no affected rows, it means that: (Choose 2)
When a transaction reports no affected rows, it means that: (Choose 2)
Which of the following SimpleXML calls print the name of the second book?
Consider the following XML code:
<code>
<?xmlversion=”1.0″ encoding=”utf-8″?>
<books>
<book id=”1″>PHP 5 Power Programming</book>
<book id=”2″>Learning PHP 5</book>
</books>
</code>
Which of the following SimpleXML calls print the name of the second book? (Choose 2)
(Let $xml=simplexml_load_file(“books.xml”);)
What is the file locking mode that should be used when writing to a file?
What is the file locking mode that should be used when writing to a file?
What is the output of the following script?
What is the output of the following script?
<code>
1 <?php
2 function ratio ($x1 = 10, $x2)
3 {
4 if (isset ($x2)) {
5 return $x2 / $x1;
6 }
7 }
8
9 echo ratio (0);
10 ?>
</code>