How to get file_get_contents() to work with HTTPS?

后端 未结 12 1963
长发绾君心
长发绾君心 2020-11-21 23:38

I\'m working on setting up credit card processing and needed to use a workaround for CURL. The following code worked fine when I was using the test server (which wasn\'t cal

12条回答
  •  忘了有多久
    2020-11-22 00:31

    To allow https wrapper:

    • the php_openssl extension must exist and be enabled
    • allow_url_fopen must be set to on

    In the php.ini file you should add this lines if not exists:

    extension=php_openssl.dll
    
    allow_url_fopen = On
    

提交回复
热议问题