Zend Certified PHP Engineer 200-550 Question # 29 Topic 3 Discussion

Zend Certified PHP Engineer 200-550 Question # 29 Topic 3 Discussion

200-550 Exam Topic 3 Question 29 Discussion:
Question #: 29
Topic #: 3

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 = file_get_contents('http://example.com/submit.php', false, $context);


A.

A GET request will be performed on http://example.com/submit.php


B.

A POST request will be performed on http://example.com/submit.php


C.

An error will be displayed


Get Premium 200-550 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.