Why there's no loaded extension: "openssl" in this php confuguration file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why there's no loaded extension: "openssl" in this php confuguration file?

Why is not the extension included here? I can't get json from remote domain. And what are there alternatives for this here?

11th Jul 2018, 12:18 PM
\__(° = °)__/
1 Answer
+ 5
Hard to say, really. PHP isn't running in a web mode so maybe there's some consideration there. In case you could just send that work to the browser, I've written the code I'm linking below exactly like a web code (just with embedded PHP). This is a little overview of the PHP wrappers (http, ftp, etc) and a JSON server echo test using http (which looks like your alternative inside PHP). https://code.sololearn.com/wNzzc7xVkimx/#php Bonus, since PHP's running in CLI mode it could take input like the other apps; I also show what it got from the app there. If "looks like your program needs input" were enabled, then it could take JSON as input that way too.
22nd Jul 2018, 10:07 PM
Kirk Schafer
Kirk Schafer - avatar