Which value will be assigned to the key O in the following code?

CORRECT TEXT Which value will be assigned to the key O in the following code? View AnswerAnswer: 1

October 27, 2018 No Comments READ MORE +

Which php.ini setting should you change accordingly?

Your supervisor wants you to disallow PHP scripts to open remote HTTP and FTP resources using PHP's file functions. Which php.ini setting should you change accordingly?View AnswerAnswer: allow_url_fopen=off, allow_url_fopen=Off,

October 27, 2018 No Comments READ MORE +

In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this? (Choose 2)

In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this? (Choose 2)A . Store session data in a different location with session.save_path .B . Store session data in a database.C . Enable safe_mode.D . Set session.name to something...

October 25, 2018 No Comments READ MORE +

Which of these error types may be handled by a user defined error handler function? {Choose two.)

Which of these error types may be handled by a user defined error handler function? {Choose two.)A . E_ERRORB . E_NOTICEC . E_PARSED . E_WARNINGView AnswerAnswer: A,C

October 24, 2018 1 Comment READ MORE +

Which of the following rules must every correct XML document adhere to? (Choose 2)

Which of the following rules must every correct XML document adhere to? (Choose 2)A . It has to be well-formed.B . It has to be valid.C . It has to be associated to a DTE . It may only contain UTF-8 encoded characters.View AnswerAnswer: A, B

October 22, 2018 No Comments READ MORE +

echo array_key_exists('foo', $x)?

What is the output of the following code? class Foo Implements Array Access { function offsetExists($k) { return true;} function offsetGet($k) {return 'a';} function offsetSet($k, $v) {} function offsetUnset($k) {} } $x = new Foo(); echo array_key_exists('foo', $x)?'true':'false';A . trueB . falseView AnswerAnswer: B

October 18, 2018 No Comments READ MORE +

Which of the following is an invalid DOM save method?

Which of the following is an invalid DOM save method?A . save()B . saveFile()C . saveXML()D . saveHTML()E . saveHTMLFile()View AnswerAnswer: B

October 17, 2018 No Comments READ MORE +

An HTML form has two submit buttons. After submitting the form, how can you determine with PHP which button was clicked?

An HTML form has two submit buttons. After submitting the form, how can you determine with PHP which button was clicked?A . An HTML form may only have one button.B . You cannot determine this with PHP only. You must use JavaScript to add a value to the URL depending...

October 10, 2018 No Comments READ MORE +

What will the following code print out?

What will the following code print out? $str = '✔ one of the following'; echo str_replace('&#l0004;', 'Check', $str);A . Check one of the followingB . one of the followingC . ✔ one of the followingView AnswerAnswer: A

October 9, 2018 No Comments READ MORE +

<?xml version='1.0'?

The XML document below has been parsed into $xml via SimpleXML. How can the value of <foo> tag accessed? <?xml version='1.0'?> <document> <bar> <foo>Value</foo> </bar> </document>A . $xml->bar['foo']B . $xml->bar->fooC . $xml['document']['bar']['foo']D . $xml->document->bar->fooE . $xml->getElementByName('foo');View AnswerAnswer: B

October 8, 2018 No Comments READ MORE +