Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/12/2004, 09:45
MrReview
 
Fecha de Ingreso: mayo-2004
Mensajes: 9
Antigüedad: 20 años
Puntos: 0
Exclamación Como puedo abrir un https://??

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), 010) == 'location: ') {
    
/* update $url with where we were redirected to */
    
$url substr($response10);
  }

}

?>
Que es lo que puedo hacer?

Saludos
MrReview