Zend Related Exams
200-550 Exam
In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this? (Choose 2)
Consider the following code. What can be said about the call to file_get_contents?
$getdata = "foo=bar";
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $getdata
)
);
$context = stream_context_create($opts);
$result = false, $context);
Which of the following is an invalid DOM save method?