+ 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?
1 Réponse
+ 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.