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?
Which of the following functions can you use?
You want to test if a string matches a relatively complex pattern. Which of the following functions
can you use? (Choose 2)
what does the 3rd parameter specify?
In the function setcookie() what does the 3rd parameter specify?
What does the chown() function do?
What does the chown() function do?
Transactions are used to:
Transactions are used to:
Which of the following SimpleXML calls print the name of the second book?
Consider the following XML code:
<code>
<?xml version=”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?
(Let $xml=simplexml_load_file(“books.xml”);) (Choose 2)
Which session function can help to avoid session fixation?
Which session function can help to avoid session fixation?
What will the following code print?
What will the following code print?
<code>
echo addslashes(‘I am a <b>small</b> “HTML” string, which is
\’invalid\'</u>.’);
</code>
Which function can help prevent cross-site scripting?
<code>
Which function can help prevent cross-site scripting? (Choose 2)
</code>
Is the following code piece E_STRICT compliant?
Is the following code piece E_STRICT compliant?
<code>
final class Testing {
var $test = 0;
public function tester() {
return “Tested!”;
}}
</code>