error con file_get_contents() failed to open stream: Redirection limit reached
Publicado por Alfredo (1 intervención) el 22/05/2020 08:44:27
Buenos días:
Estoy tratando de generar un string mediante file_get_contents de la dirección https://www.haya.es/comprar/viviendas/
uso el siguiente código:
pero me lanza el error:
Warning: file_get_contents(https://www.haya.es/comprar/viviendas/): failed to open stream: Redirection limit reached, aborting in C:\xampp\htdocs\prueba\index.php on line 13
Agradecería cualquier ayuda.
Un saludo,
Estoy tratando de generar un string mediante file_get_contents de la dirección https://www.haya.es/comprar/viviendas/
uso el siguiente código:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
$arrContextOptions=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
$response = file_get_contents("https://www.haya.es/comprar/viviendas/", false, stream_context_create($arrContextOptions));
echo $response;
?>
pero me lanza el error:
Warning: file_get_contents(https://www.haya.es/comprar/viviendas/): failed to open stream: Redirection limit reached, aborting in C:\xampp\htdocs\prueba\index.php on line 13
Agradecería cualquier ayuda.
Un saludo,
Valora esta pregunta


0