• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

PHP cURL (SSL certificate problem: self signed certificate in certificate chain)

phpwordpresscurlphp-curl


PHP Snippet 1:

curl.cainfo = <absolute_path_to> cacert.pem

PHP Snippet 2:

curl_setopt ($ch, CURLOPT_CAINFO, dirname(__FILE__)."/cacert.pem");

Related Snippets

Display the WooCommerce product price inside a custom function

Chunk and transpose a flat array into rows with a specific number of columns

wp_remote_get() not passing authentication

Laravel Get Days In Month From Month Number?

Only on Firefox "Loading failed for the <script> with source"

Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in

Convert PHP array into HTML tag attributes separated by spaces

How to Generate PDF invoice to XML format using mPDF

XAMPP keeps showing Dashboard/Welcome Page instead of the Configuration Page

Split comma separated value from table column into rows using mysql?

Reducing authentication calls on external API (Laravel 5.6)

generating a random code in php?

Put content of wordpress page inside div

Insert multidimensional array to codeigniter cart

Printing more than one array using print_r or any other function in php

About Contact Privacy policy Terms and conditions