Hola, estoy intentando abrir un sitio
https:// con
file() pero no puedo... me da estos errores:
Notice: fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
Warning: fopen(https://ladireccion): failed to open stream: Invalid argument
Warning: stream_get_meta_data(): supplied argument is not a valid stream resource
Warning: Invalid argument supplied for foreach()
el codigo php es este:
Código PHP:
<?php
$url = 'https://ladireccion';
$fp = fopen($url, 'r');
/* Prior to PHP 4.3.0 use $http_response_header
instead of stream_get_meta_data() */
foreach(stream_get_meta_data($fp) as $response) {
/* Were we redirected? */
if (substr(strtolower($response), 0, 10) == 'location: ') {
/* update $url with where we were redirected to */
$url = substr($response, 10);
}
}
?>
Que es lo que puedo hacer?
Saludos
MrReview