Hi! Ich bekomme folgenden Fehler, wenn ich auf eine https-Seite mit file_get_contents oder auch fopen zugreifen will.
Das läßt sich wohl durch Änderung der Konfiguration in der php.ini beheben.
Kann man das aber nicht auch umgehen?
Wie gesagt, file_get_contents und fopen (samt setzen des Contexts) habe ich schon ausprobiert.
Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
Kann man das aber nicht auch umgehen?
Wie gesagt, file_get_contents und fopen (samt setzen des Contexts) habe ich schon ausprobiert.
PHP-Code:
$data = http_build_query(
array('SUBSCRIPTION_ID' => $id
));
$context_options = array (
'http' => array (
'method' => 'POST',
'header'=> "Content-type: application/x-www-form-urlencoded\r\n"
. "Content-Length: " . strlen($data) . "\r\n",
'content' => $data
)
);
$context = stream_context_create($context_options);
$fp = fopen($url, 'r', false, $context);

Kommentar