Al tratar de ejecutar desde el CMD el comando php xkcd.php me topo con el siguiente error de ejecución: PHP Warning: file_get_contents()...

JONNATHAN ANDRES RIOS SALAZAR

JONNATHAN ANDRES RIOS SALAZAR

Pregunta
studenthace 6 años

Al tratar de ejecutar desde el CMD el comando php xkcd.php me topo con el siguiente error de ejecución:

PHP Warning: file_get_contents(): Unable to find the wrapper “https” - did you forget to enable it when you configured PHP? in C:\Users\Jonnathan\Documents\API REST\xkcd.php on line 3

PHP Warning: file_get_contents(https://xkcd.com/info.0.json): failed to open stream: No such file or directory in C:\Users\Jonnathan\Documents\API REST\xkcd.php on line 3

2 respuestas
para escribir tu comentario
Curso de API REST [Empieza Gratis]

Curso de API REST [Empieza Gratis]

Desarrolla APIs REST con PHP conectando aplicaciones y estructuras web. Aprende a implementar protocolos HTTP y REST, gestionar peticiones GET, POST y errores, y aplicar autenticación segura. Publica y accede a APIs en servidores.

Curso de API REST [Empieza Gratis]
Curso de API REST [Empieza Gratis]

Curso de API REST [Empieza Gratis]

Desarrolla APIs REST con PHP conectando aplicaciones y estructuras web. Aprende a implementar protocolos HTTP y REST, gestionar peticiones GET, POST y errores, y aplicar autenticación segura. Publica y accede a APIs en servidores.