ok, i then printed the absolute path and then put this path back into the original script to get
<?php
const FETCH_URL = 'https://www.whoscored.com/Matches/829839/Live';
$curl = curl_init(FETCH_URL);
curl_setopt($curl, CURLOPT_CAINFO, '/home/content/m/u/p/muppet77/html/footballstatistics.co/gd_bundle-g2.cer');
if (!$curl)
{
trigger_error('Failed to initialize cURL.', E_USER_ERROR);
}
if (!curl_setopt($curl, CURLOPT_RETURNTRANSFER, true))
{
trigger_error('Failed to set cURL option.', E_USER_ERROR);
}
if (!curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true))
{
trigger_error('Failed to set cURL option.', E_USER_ERROR);
}
$curl_response = curl_exec($curl);
if ($curl_response === false)
{
trigger_error('cURL error: '.curl_error($curl), E_USER_ERROR);
}
echo $curl_response;
curl_close($curl);
?>
which output the same output error as post #19
Fatal error: cURL error: Unknown SSL protocol error in connection to www.whoscored.com:443 in /home/content/m/u/p/muppet77/html/footballstatistics.co/test.php on line 26