How can I set CURLOPT_CAINFO globally for PHP on Windows?

后端 未结 5 1840
天命终不由人
天命终不由人 2020-12-14 01:59

I understand that I can set the option on any specific instance, however what I would really like is to set something up php.ini or somewhere similar which will handle this

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-14 02:33

    1. download cacert.pem add to folder php
    2. copy url the place of file cacert.pem
    3. [curl] curl.cainfo="C:/xampp/php/cacert.pem"

提交回复
热议问题