so...here is the code:

$opts['http']['method'] = 'POST';
$opts['http']['header'] = $header;
$opts['http']['content'] = $request_data;
$context = stream_context_create($opts);
$filename = 'https://'.$host.$service_uri;
$content = file_get_contents($filename,false,$context);

here is the error:

Warning: file_get_contents() expects at most 2 parameters, 3 given in /path/to/the/file.php on line 34

According to all the documentation I could find, file_get_contents should be able to take 5 parameters....WHAT IS GOING ON??!?!?!

    Are you running PHP5? Context support was only added in at 5.0.0, and if you try to pass the context through to an integer only argument (offset, the old third parameter), I could see PHP throwing a warning back at you.

      right...just read on the php website about that...i sound kinda ignorant now :-|

      thanx

        Write a Reply...